[CMake] CPACK issue with symbolic links

Anil Gunturu anil.gunturu at riftio.com
Mon Feb 24 21:38:42 EST 2014


While to trying to create an RPM package using CPACK, we are encountering an issue when symbolic links are present. We are using the CPACK_INSTALLED_DIRECTORIES to specify the directories for packaging. It seems like CPACK is not in the correct directory when creating the symbolic link.

/builddir/build/BUILD/cmake-2.8.12.1/Source/CPack/cmCPackGenerator.cxx:429 Change dir to: /blah/.build/blah_blah/_CPack_Packages/Linux/RPM/ext-foo-1.0-Linux/protobuf-c
/builddir/build/BUILD/cmake-2.8.12.1/Source/CPack/cmCPackGenerator.cxx:437 Will create a symlink: usr/include/google/protobuf-c/protobuf-c.h--> ../../protobuf-c/protobuf-c.h
CPack Error: /builddir/build/BUILD/cmake-2.8.12.1/Source/CPack/cmCPackGenerator.cxx:443 Cannot create symlink: usr/include/google/protobuf-c/protobuf-c.h--> ../../protobuf-c/protobuf-c.h
CPack Error: /builddir/build/BUILD/cmake-2.8.12.1/Source/CPack/cpack.cxx:516 Error when generating package: ext-foo

Thanks in advance for your help,

-Anil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20140225/d443516e/attachment-0001.html>


More information about the CMake mailing list