diff options
author | Domen Vrankar <domen.vrankar@gmail.com> | 2016-03-31 05:48:38 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-04-01 13:52:04 (GMT) |
commit | eae4eef0c48188027b5c25657054b12b6b301c85 (patch) | |
tree | 41f10040e4d1e2878870224ebe7fe75241169f78 /Tests/CPackComponentsForAll/CMakeLists.txt | |
parent | b290ddf925aee7dca25396035b1b53223d37e9e5 (diff) | |
download | CMake-eae4eef0c48188027b5c25657054b12b6b301c85.zip CMake-eae4eef0c48188027b5c25657054b12b6b301c85.tar.gz CMake-eae4eef0c48188027b5c25657054b12b6b301c85.tar.bz2 |
CPack/RPM external symlink handling
Symbolic links that point to external
location no longer cause cmake to fail
with string out of bounds error but
are instead packaged as non relocatable
symlinks and print out a warning message.
Diffstat (limited to 'Tests/CPackComponentsForAll/CMakeLists.txt')
-rw-r--r-- | Tests/CPackComponentsForAll/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/CPackComponentsForAll/CMakeLists.txt b/Tests/CPackComponentsForAll/CMakeLists.txt index 823f6db..05c13a4 100644 --- a/Tests/CPackComponentsForAll/CMakeLists.txt +++ b/Tests/CPackComponentsForAll/CMakeLists.txt @@ -92,6 +92,9 @@ if("${CPACK_GENERATOR}" MATCHES "RPM") # test symbolic link to location outside package execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ./outside_package symlink_outside_package) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/symlink_outside_package DESTINATION ${CMAKE_INSTALL_LIBDIR}/inside_relocatable_one/depth_two COMPONENT libraries) + # test symbolic link to location outside wdr (packaging directory) + execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink /outside_package_wdr symlink_outside_wdr) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/symlink_outside_wdr DESTINATION ${CMAKE_INSTALL_LIBDIR}/inside_relocatable_one/depth_two COMPONENT libraries) endif() # CPack boilerplate for this project |