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

Guilherme Balena Versiani guibv at comunip.com.br
Wed May 16 17:08:42 EDT 2007


Sorry, I forgot to post CMake version I am using: it is 2.4.6. I didn't 
tried previous versions.

Guilherme Balena Versiani escreveu:
> 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/01fe129c/guibv.vcf


More information about the CMake mailing list