summaryrefslogtreecommitdiffstats
path: root/Modules/Internal/HeaderpadWorkaround.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/Internal/HeaderpadWorkaround.cmake')
-rw-r--r--Modules/Internal/HeaderpadWorkaround.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/Internal/HeaderpadWorkaround.cmake b/Modules/Internal/HeaderpadWorkaround.cmake
index 9a7f9f5..fccfaae 100644
--- a/Modules/Internal/HeaderpadWorkaround.cmake
+++ b/Modules/Internal/HeaderpadWorkaround.cmake
@@ -9,7 +9,7 @@ if(NOT APPLE)
return()
endif()
-cmake_policy(PUSH)
+block(SCOPE_FOR POLICIES)
cmake_policy(SET CMP0054 NEW) # if() quoted variables not dereferenced
function(__cmake_internal_workaround_headerpad_flag_conflict _LANG)
@@ -66,4 +66,4 @@ endforeach()
unset(__lang)
unset(__enabled_languages)
-cmake_policy(POP)
+endblock()