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
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to