[CMake] CPack TGZ Generator and symlinks

Bill Napier Bill.Napier at hillcrestlabs.com
Wed Jul 11 15:37:20 EDT 2007


Hi all,
 
I currenlty have something like this to create and install a symlink as
part of my application:
 
    ADD_CUSTOM_COMMAND(TARGET target
        POST_BUILD
        COMMAND ln -s -f foo bar
        DEPENDS foo
        VERBATIM)
    INSTALL_FILES("/" FILES
        bar )
 
I'm also using CPack to package up this stuff into a .tgz file.  After I
run "make install", bar is really a symlink to foo.  After I run "make
package", the .tgz file has bar as a copy of foo.
 
I took a look at the cpack source code, and it looks like libtar has the
proper handling to handle the symlink, but for whatever reason it isn't.
anybody have any suggestions?  Thanks,
 
Bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20070711/060fed7d/attachment.html


More information about the CMake mailing list