diff options
author | scivision <scivision@users.noreply.github.com> | 2023-03-08 18:25:05 (GMT) |
---|---|---|
committer | scivision <scivision@users.noreply.github.com> | 2023-03-08 19:07:55 (GMT) |
commit | f3e85754b4ab3ed8322ce256626bdf2d69c5e647 (patch) | |
tree | 04795af4eaf97a8ef0c7d1e88541e49661a4af2f /Modules/Internal/CheckSourceRuns.cmake | |
parent | a4e7b4d75a0b079d468726f4e4a772cbbd4aab82 (diff) | |
download | CMake-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.cmake | 4 |
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() |