Commit edb3f6ee authored by Domen Vrankar's avatar Domen Vrankar Committed by Brad King
Browse files

CPackRPM: Avoid CMP0007 warnings

For older versions of CMake minimum required version CMP0007 policy
warning was printed out.
parent 5c87b92b
......@@ -847,7 +847,10 @@ function(cpack_rpm_prepare_content_list)
set(_DISTINCT_PATH "${_RPM_RELOCATION_PREFIX}")
string(REPLACE "/" ";" _CPACK_RPM_PACKAGE_PREFIX_ELEMS " ${_RPM_RELOCATION_PREFIX}")
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})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment