[CMake] cmake and stow: differing installation and runtime locations

Michael Wild themiwi at gmail.com
Thu Sep 30 05:02:34 EDT 2010


On 30. Sep, 2010, at 10:51 , Christoph Groth wrote:

> Dear cmake experts,
> 
> I like to use GNU stow to install self-compiled packages on my system.
> For this to work best, I have to be able to specify during package
> configuration a different runtime location (the directory prefix the
> package will "think" it is installed to) and installation location (the
> directory prefix which will be actually used for installation).
> 
> This way I can install all the package files under the prefix
> $HOME/stow/package-name and then tell stow to make symlinks to the
> runtime location (prefix $HOME).
> 
> This procedure allows easy removal and replacement of packages.
> 
> I was not able to find out how to specify different installation and
> runtime locations with cmake.  Any hints are warmly appreciated.
> 
> Thanks
> Christoph

Why must your program know anything about the $HOME prefix? After all, it's only symlinked there...

Michael

--
There is always a well-known solution to every human problem -- neat, plausible, and wrong.
H. L. Mencken

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100930/031862d0/attachment.pgp>


More information about the CMake mailing list