[CMake] INSTALL(DIRECTORY ...) does not preserve symlinks

Guilherme Balena Versiani guibv at comunip.com.br
Wed May 16 11:24:09 EDT 2007


Hello all,

I have a big software distribution with several third-party software 
bundled with it. I use CMake to download these third-party packages, 
unpack, configure and install it temporarily in a CMAKE_BINARY_DIR 
subdir (e.g. ${CMAKE_BINARY_DIR}/dist) -- after this process I compile 
the rest of my software and link it with the bundled libraries. There 
are a lot of symbolic links generated in 'dist' after this process.

Everything works very well until I do 'make install' or 'make package'. 
As I have so many files to install, I just have used:

    INSTALL(DIRECTORY ${CMAKE_BINARY_DIR}/dist/x/ DESTINATION x)

But both the installation and the package have all symbolic links 
removed (substituted by a copy of its targets). There is a way to 
preserve symlinks during the install/package process?

Regards,

Guilherme Balena Versiani.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: guibv.vcf
Type: text/x-vcard
Size: 323 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20070516/43ed3c3c/guibv.vcf


More information about the CMake mailing list