summaryrefslogtreecommitdiffstats
path: root/Modules/Internal/CheckSourceRuns.cmake
diff options
context:
space:
mode:
authorscivision <scivision@users.noreply.github.com>2023-03-08 18:25:05 (GMT)
committerscivision <scivision@users.noreply.github.com>2023-03-08 19:07:55 (GMT)
commitf3e85754b4ab3ed8322ce256626bdf2d69c5e647 (patch)
tree04795af4eaf97a8ef0c7d1e88541e49661a4af2f /Modules/Internal/CheckSourceRuns.cmake
parenta4e7b4d75a0b079d468726f4e4a772cbbd4aab82 (diff)
downloadCMake-f3e85754b4ab3ed8322ce256626bdf2d69c5e647.zip
CMake-f3e85754b4ab3ed8322ce256626bdf2d69c5e647.tar.gz
CMake-f3e85754b4ab3ed8322ce256626bdf2d69c5e647.tar.bz2
Modules:Check*: refactor: use block(SCOPE_FOR POLICIES)
Diffstat (limited to 'Modules/Internal/CheckSourceRuns.cmake')
-rw-r--r--Modules/Internal/CheckSourceRuns.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/Internal/CheckSourceRuns.cmake b/Modules/Internal/CheckSourceRuns.cmake
index 805d98d..c01081e 100644
--- a/Modules/Internal/CheckSourceRuns.cmake
+++ b/Modules/Internal/CheckSourceRuns.cmake
@@ -3,7 +3,7 @@
include_guard(GLOBAL)
-cmake_policy(PUSH)
+block(SCOPE_FOR POLICIES)
cmake_policy(SET CMP0054 NEW) # if() quoted variables not dereferenced
cmake_policy(SET CMP0057 NEW) # if() supports IN_LIST
@@ -124,4 +124,4 @@ function(CMAKE_CHECK_SOURCE_RUNS _lang _source _var)
endif()
endfunction()
-cmake_policy(POP)
+endblock()