summaryrefslogtreecommitdiffstats
path: root/Tests/CPackComponentsForAll/MyLibCPackConfig-IgnoreGroup.cmake.in
diff options
context:
space:
mode:
authorDomen Vrankar <domen.vrankar@gmail.com>2015-02-27 13:42:29 (GMT)
committerBrad King <brad.king@kitware.com>2015-02-27 13:42:29 (GMT)
commit3cf86d9e7bb082b05c507c744b0a43981ba199c3 (patch)
treed2b47a5c21933c3a7d1e1375067394e32b46e62b /Tests/CPackComponentsForAll/MyLibCPackConfig-IgnoreGroup.cmake.in
parent4817d2814a6d82e35590f9bfff2b088c95d45395 (diff)
parent1cbb15625304b01e8a99a956fa42e4b7011fea48 (diff)
downloadCMake-3cf86d9e7bb082b05c507c744b0a43981ba199c3.zip
CMake-3cf86d9e7bb082b05c507c744b0a43981ba199c3.tar.gz
CMake-3cf86d9e7bb082b05c507c744b0a43981ba199c3.tar.bz2
Merge branch 'cpack_rpm_mulit_prefix_fixup' into cpack_rpm_mulit_prefix_fixup-for-master
Resolve conflict in Tests/CPackComponentsForAll/RunCPackVerifyResult.cmake by combining the changes from both sides.
Diffstat (limited to 'Tests/CPackComponentsForAll/MyLibCPackConfig-IgnoreGroup.cmake.in')
-rw-r--r--Tests/CPackComponentsForAll/MyLibCPackConfig-IgnoreGroup.cmake.in9
1 files changed, 7 insertions, 2 deletions
diff --git a/Tests/CPackComponentsForAll/MyLibCPackConfig-IgnoreGroup.cmake.in b/Tests/CPackComponentsForAll/MyLibCPackConfig-IgnoreGroup.cmake.in
index 4119b8d..e4780d3 100644
--- a/Tests/CPackComponentsForAll/MyLibCPackConfig-IgnoreGroup.cmake.in
+++ b/Tests/CPackComponentsForAll/MyLibCPackConfig-IgnoreGroup.cmake.in
@@ -6,9 +6,14 @@ if(CPACK_GENERATOR MATCHES "ZIP")
endif()
if(CPACK_GENERATOR MATCHES "RPM")
- set(CPACK_PACKAGING_INSTALL_PREFIX "/usr")
-
set(CPACK_RPM_COMPONENT_INSTALL "ON")
+
+ # test that /usr and /usr/foo get omitted in relocatable
+ # rpms as shortest relocation path is treated as base of
+ # package (/usr/foo/bar is relocatable and must exist)
+ set(CPACK_PACKAGING_INSTALL_PREFIX "/usr/foo/bar")
+
+ # test requires
set(CPACK_RPM_applications_PACKAGE_REQUIRES "mylib-libraries")
# test a "noarch" rpm