diff options
author | Brad King <brad.king@kitware.com> | 2022-10-19 13:56:58 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-10-19 13:57:08 (GMT) |
commit | 177c56e3fa7827629bde4289ec3b7e8661e47650 (patch) | |
tree | 50df54bb7492d12362308912408c032f4044e542 /Tests/RunCMake/try_compile/CMP0128-NEW.cmake | |
parent | 077e42fe7648f4ef5c9741e7a1e085ee6c8685ab (diff) | |
parent | 50e90e282847f1109e5559d49fc12214b3493fff (diff) | |
download | CMake-177c56e3fa7827629bde4289ec3b7e8661e47650.zip CMake-177c56e3fa7827629bde4289ec3b7e8661e47650.tar.gz CMake-177c56e3fa7827629bde4289ec3b7e8661e47650.tar.bz2 |
Merge topic 'try_compile-CMP0128' into release-3.25
50e90e2828 try_compile: Honor CMP0128 setting in test project
Acked-by: Kitware Robot <kwrobot@kitware.com>
Reviewed-by: Raul Tambre <raul@tambre.ee>
Merge-request: !7803
Diffstat (limited to 'Tests/RunCMake/try_compile/CMP0128-NEW.cmake')
-rw-r--r-- | Tests/RunCMake/try_compile/CMP0128-NEW.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/try_compile/CMP0128-NEW.cmake b/Tests/RunCMake/try_compile/CMP0128-NEW.cmake new file mode 100644 index 0000000..20e389a --- /dev/null +++ b/Tests/RunCMake/try_compile/CMP0128-NEW.cmake @@ -0,0 +1,7 @@ +cmake_policy(SET CMP0128 NEW) +set(check_cxx_std " +#if __cplusplus > 199711L && __cplusplus <= 201103L +# error Compiler is incorrectly in C++11 mode. +#endif +") +include(CMP0128-common.cmake) |