[CMake] symbolic links
Steven Wilson
steven.wesley.wilson at gmail.com
Fri Feb 17 16:20:16 EST 2012
Thanks Eric, This solution should work and Unix is the only place where I
need this to happen anyway.
On Fri, Feb 17, 2012 at 12:23 PM, Eric Noulard <eric.noulard at gmail.com>wrote:
> 2012/2/17 Steven Wilson <steven.wesley.wilson at gmail.com>:
> > I have a large software system that depends on third party libraries.
> The
> > CMake system that builds this software uses install() to copy these
> > libraries into the appropriate place in the layout. On some systems I
> > would like to provide my developers with the option of not copying these
> > libraries and instead creating symbolic links to the libraries in the
> > software layout. Using symbolic links would save a great deal of disk
> > space for developers when they have many different versions(debug,
> profile,
> > etc...) of the software build system. Is there a way to create
> symbolic
> > links to files rather than copy files at install time?
>
> You could certainly achieve that using
> install(CODE
> or
> install(SCRIPT
>
> and execute_process with cmake -E create_symlink
> that said it will only work on unix.
>
>
>
>
> --
> Erk
> Membre de l'April - « promouvoir et défendre le logiciel libre » -
> http://www.april.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120217/df92cac9/attachment-0001.htm>
More information about the CMake
mailing list