summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CPack/tests/DEBUGINFO/test.cmake
diff options
context:
space:
mode:
authorDomen Vrankar <domen.vrankar@gmail.com>2017-12-06 19:35:21 (GMT)
committerDomen Vrankar <domen.vrankar@gmail.com>2017-12-06 20:04:20 (GMT)
commita2031d3a3a6ff26640f5c8cc0d76a0076c6e74cc (patch)
treea10b31cfef1bb39c4c19858d1a69fa96c3075deb /Tests/RunCMake/CPack/tests/DEBUGINFO/test.cmake
parent92910e282adedff8c2dba488db84fb917318bb5b (diff)
downloadCMake-a2031d3a3a6ff26640f5c8cc0d76a0076c6e74cc.zip
CMake-a2031d3a3a6ff26640f5c8cc0d76a0076c6e74cc.tar.gz
CMake-a2031d3a3a6ff26640f5c8cc0d76a0076c6e74cc.tar.bz2
CPack/RPM: check executable flags for debuginfo packages
Debuginfo packages can not be created from programs and shared libraries that do not have execute permissions.
Diffstat (limited to 'Tests/RunCMake/CPack/tests/DEBUGINFO/test.cmake')
-rw-r--r--Tests/RunCMake/CPack/tests/DEBUGINFO/test.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/CPack/tests/DEBUGINFO/test.cmake b/Tests/RunCMake/CPack/tests/DEBUGINFO/test.cmake
index f1b6738..71457d4 100644
--- a/Tests/RunCMake/CPack/tests/DEBUGINFO/test.cmake
+++ b/Tests/RunCMake/CPack/tests/DEBUGINFO/test.cmake
@@ -8,6 +8,10 @@ endif()
set(CMAKE_BUILD_TYPE Debug)
+# for rpm packages execute flag must be set for shared libs if debuginfo
+# packages are generated
+set(CPACK_RPM_INSTALL_WITH_EXEC TRUE)
+
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/test_lib.hpp"
"int test_lib();\n")
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/test_lib.cpp"