On 30. Sep, 2010, at 11:11 , Christoph Groth wrote: > Michael Wild <them...@gmail.com> writes: > >> On 30. Sep, 2010, at 10:51 , Christoph Groth wrote: >> >>> I was not able to find out how to specify different installation and >>> runtime locations with cmake. >> >> Why must your program know anything about the $HOME prefix? After all, >> it's only symlinked there. > > Some packages (e.g. ALPS http://alps.comp-phys.org/) write or even > compile-in the installation path into some of the installed files, for > the package to know where it is installed. > > Christoph
Yes, and that installation path should be $HOME/stow/package-name. After all, that's where all the real files are. This way, you can even run the executables even if they are not currently symlinked. If you can't live with that, use cmake -DCMAKE_INSTALL_PREFIX=$HOME /path/to/source make make install DESTDIR=$HOME/stow/package-name Michael -- There is always a well-known solution to every human problem -- neat, plausible, and wrong. H. L. Mencken
PGP.sig
Description: This is a digitally signed message part
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake