diff options
author | Craig Scott <craig.scott@crascit.com> | 2018-09-12 14:50:16 +0800 |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2018-09-12 14:50:16 +0800 |
commit | 8ede35523e6e3b6d562d30a3df7780b66bdbd971 (patch) | |
tree | 6d0f21b4b5e7787c117f86b11b4ea79c0aa18758 /Modules/Internal/CPack/CPackDeb.cmake | |
parent | e549e31f798b05345de5a36f876197b595296eb4 (diff) | |
download | cmake-8ede35523e6e3b6d562d30a3df7780b66bdbd971.tar.gz |
IN_LIST: Ensure policy allows if(IN_LIST) if used by a module
Diffstat (limited to 'Modules/Internal/CPack/CPackDeb.cmake')
-rw-r--r-- | Modules/Internal/CPack/CPackDeb.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/Internal/CPack/CPackDeb.cmake b/Modules/Internal/CPack/CPackDeb.cmake index 4ef4539b2a..ca3a0048c6 100644 --- a/Modules/Internal/CPack/CPackDeb.cmake +++ b/Modules/Internal/CPack/CPackDeb.cmake @@ -10,6 +10,9 @@ if(CMAKE_BINARY_DIR) message(FATAL_ERROR "CPackDeb.cmake may only be used by CPack internally.") endif() +cmake_policy(PUSH) +cmake_policy(SET CMP0057 NEW) # if IN_LIST + function(cpack_deb_variable_fallback OUTPUT_VAR_NAME) set(FALLBACK_VAR_NAMES ${ARGN}) @@ -579,3 +582,5 @@ function(cpack_deb_prepare_package_vars) endfunction() cpack_deb_prepare_package_vars() + +cmake_policy(POP) |