diff options
author | Brad King <brad.king@kitware.com> | 2016-09-20 12:40:58 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-09-20 12:40:58 (GMT) |
commit | 5c1ebec8430fe755f9ef2b0ba3316f424113ecbf (patch) | |
tree | 8a3eda04a9047ad1cacff55eed412d88e49f930b /Modules | |
parent | 290d48ebc7e3842dc4ddd2dfa0da1025cda00646 (diff) | |
parent | edb3f6eee4babe2efab6d50b8bec75d839b6a1c5 (diff) | |
download | CMake-5c1ebec8430fe755f9ef2b0ba3316f424113ecbf.zip CMake-5c1ebec8430fe755f9ef2b0ba3316f424113ecbf.tar.gz CMake-5c1ebec8430fe755f9ef2b0ba3316f424113ecbf.tar.bz2 |
Merge topic 'cpack-rpm-policy-warnings'
edb3f6ee CPackRPM: Avoid CMP0007 warnings
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CPackRPM.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/CPackRPM.cmake b/Modules/CPackRPM.cmake index e9b836b..d78f7fa 100644 --- a/Modules/CPackRPM.cmake +++ b/Modules/CPackRPM.cmake @@ -918,7 +918,10 @@ function(cpack_rpm_prepare_content_list) set(_DISTINCT_PATH "${_RPM_RELOCATION_PREFIX}") string(REPLACE "/" ";" _CPACK_RPM_PACKAGE_PREFIX_ELEMS " ${_RPM_RELOCATION_PREFIX}") - list(REMOVE_AT _CPACK_RPM_PACKAGE_PREFIX_ELEMS -1) + cmake_policy(PUSH) + cmake_policy(SET CMP0007 NEW) + list(REMOVE_AT _CPACK_RPM_PACKAGE_PREFIX_ELEMS -1) + cmake_policy(POP) unset(_TMP_LIST) # Now generate all of the parent dirs of the relocation path foreach(_PREFIX_PATH_ELEM ${_CPACK_RPM_PACKAGE_PREFIX_ELEMS}) |