summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CPackRPM/CPackRPM_PARTIALLY_RELOCATABLE_WARNING.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-02-03 14:46:21 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-02-03 14:46:21 (GMT)
commitaec11372a5868694937b1c232af9d7510ad8497e (patch)
tree740156f23b2c802f177884ce6d7a97940682f632 /Tests/RunCMake/CPackRPM/CPackRPM_PARTIALLY_RELOCATABLE_WARNING.cmake
parent99e3650e66399e75efb989322d4b0146c549dbfa (diff)
parent3ec025472735c22cb90b09bc171190005dd28bb1 (diff)
downloadCMake-aec11372a5868694937b1c232af9d7510ad8497e.zip
CMake-aec11372a5868694937b1c232af9d7510ad8497e.tar.gz
CMake-aec11372a5868694937b1c232af9d7510ad8497e.tar.bz2
Merge topic 'rpm_multi_prefix'
3ec02547 CPackRPM: Allow multiple path relocation prefixes for one package
Diffstat (limited to 'Tests/RunCMake/CPackRPM/CPackRPM_PARTIALLY_RELOCATABLE_WARNING.cmake')
-rw-r--r--Tests/RunCMake/CPackRPM/CPackRPM_PARTIALLY_RELOCATABLE_WARNING.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/CPackRPM/CPackRPM_PARTIALLY_RELOCATABLE_WARNING.cmake b/Tests/RunCMake/CPackRPM/CPackRPM_PARTIALLY_RELOCATABLE_WARNING.cmake
new file mode 100644
index 0000000..3ace6a8
--- /dev/null
+++ b/Tests/RunCMake/CPackRPM/CPackRPM_PARTIALLY_RELOCATABLE_WARNING.cmake
@@ -0,0 +1,7 @@
+install(FILES CMakeLists.txt DESTINATION /not_relocatable COMPONENT static)
+install(FILES CMakeLists.txt DESTINATION relocatable COMPONENT relocatable)
+
+set(CPACK_PACKAGE_RELOCATABLE TRUE)
+set(CPACK_PACKAGING_INSTALL_PREFIX "/opt")
+
+set(CPACK_RPM_COMPONENT_INSTALL ON)