diff options
author | Brad King <brad.king@kitware.com> | 2021-08-19 14:24:58 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-08-19 14:25:15 (GMT) |
commit | a7daf30070755cb4cac5ce50f80217adb29e6063 (patch) | |
tree | 6990913234b66860664b6469449d0c95330d3ef8 /Modules | |
parent | 7f6905630f65308fb4a9853a81756aaf0c9f1e08 (diff) | |
parent | 89ed11ae6f98319bbba2c34e7c0e1d1a5c8dd547 (diff) | |
download | CMake-a7daf30070755cb4cac5ce50f80217adb29e6063.zip CMake-a7daf30070755cb4cac5ce50f80217adb29e6063.tar.gz CMake-a7daf30070755cb4cac5ce50f80217adb29e6063.tar.bz2 |
Merge topic 'CheckLanguage-CMP0126' into release-3.21
89ed11ae6f CheckLanguage: Avoid CMP0126 warning
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6462
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CheckLanguage.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/CheckLanguage.cmake b/Modules/CheckLanguage.cmake index 928881c..559c103 100644 --- a/Modules/CheckLanguage.cmake +++ b/Modules/CheckLanguage.cmake @@ -36,6 +36,9 @@ Example: include_guard(GLOBAL) +cmake_policy(PUSH) +cmake_policy(SET CMP0126 NEW) + macro(check_language lang) if(NOT DEFINED CMAKE_${lang}_COMPILER) set(_desc "Looking for a ${lang} compiler") @@ -110,3 +113,5 @@ file(WRITE \"\${CMAKE_CURRENT_BINARY_DIR}/result.cmake\" endif() endmacro() + +cmake_policy(POP) |