summaryrefslogtreecommitdiffstats
path: root/Modules/CheckLanguage.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/CheckLanguage.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/CheckLanguage.cmake')
-rw-r--r--Modules/CheckLanguage.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/CheckLanguage.cmake b/Modules/CheckLanguage.cmake
index 2e56a19..69913a3 100644
--- a/Modules/CheckLanguage.cmake
+++ b/Modules/CheckLanguage.cmake
@@ -36,7 +36,7 @@ Example:
include_guard(GLOBAL)
-cmake_policy(PUSH)
+block(SCOPE_FOR POLICIES)
cmake_policy(SET CMP0126 NEW)
macro(check_language lang)
@@ -114,4 +114,4 @@ file(WRITE \"\${CMAKE_CURRENT_BINARY_DIR}/result.cmake\"
endif()
endmacro()
-cmake_policy(POP)
+endblock()