I had set CMAKE_INSTALL_PREFIX to point to my conda environment directory,
which was why I was so surprised to see it install elsewhere. Most of the
time that works, even on the Mac. But if I have a little bit of time I'll
see if I can figure out what's going on.
On Fri, Apr 21, 2017, 12:24 PM Geoffrey Hutchison <geoff.hutchi...@gmail.com>
wrote:
> > I tried to build my conda recipe for avogadro on my mac laptop, and was
> surprised to see the code installing under /Applications rather than in the
> conda environment subdirectory where I had expected it.
>
>
> The default is to install in /Applications because that's where Mac apps
> go. It's pretty easy to add a symlink, eg..
>
> sudo ln -s /Applications/Avogadro.app/Contents/MacOS/Avogadro
> /usr/local/bin/avogadro
>
> If you want to change the location of the bundle, you'll need to look at
> CMakeLists.txt, e.g.
>
> set(CMAKE_BUNDLE_LOCATION "/Applications")
> set(CMAKE_INSTALL_PREFIX
> "/Applications/${CMAKE_BUNDLE_NAME}.app/Contents")
>
> So you can set those when running cmake on Mac and you'll get it in a
> different location. I'll note that some Anaconda and MacPorts recipes will
> install things in /Applications too.
>
> -Geoff
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Avogadro-devel mailing list
Avogadro-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/avogadro-devel