diff options
author | Brad King <brad.king@kitware.com> | 2022-10-24 16:30:24 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-10-24 16:30:24 (GMT) |
commit | 4f2bb02d9a85e1002afb49b91e3568674715b4e3 (patch) | |
tree | 1570820885fb67e5bca345cff64444e9762ab741 | |
parent | 199b3e580d08da2b883d3c5c173b9c59abbc1184 (diff) | |
parent | 90287792b6dc9bc1535c0677f9b3d81d0bd28905 (diff) | |
download | CMake-4f2bb02d9a85e1002afb49b91e3568674715b4e3.zip CMake-4f2bb02d9a85e1002afb49b91e3568674715b4e3.tar.gz CMake-4f2bb02d9a85e1002afb49b91e3568674715b4e3.tar.bz2 |
Merge branch 'try_compile-CMP0128' into release-3.23
Merge-request: !7821
-rw-r--r-- | Tests/RunCMake/try_compile/RunCMakeTest.cmake | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Tests/RunCMake/try_compile/RunCMakeTest.cmake b/Tests/RunCMake/try_compile/RunCMakeTest.cmake index 4301cf7..33d6543 100644 --- a/Tests/RunCMake/try_compile/RunCMakeTest.cmake +++ b/Tests/RunCMake/try_compile/RunCMakeTest.cmake @@ -121,10 +121,11 @@ run_cmake(Inspect) include("${RunCMake_BINARY_DIR}/Inspect-build/info.cmake") # FIXME: Support more compilers and default standard levels. -if (CMAKE_CXX_COMPILER_ID MATCHES "^(GNU|AppleClang)$" - AND DEFINED CMAKE_CXX_STANDARD_DEFAULT - AND DEFINED CMAKE_CXX_EXTENSIONS_DEFAULT - ) +if (DEFINED CMAKE_CXX_STANDARD_DEFAULT AND + DEFINED CMAKE_CXX_EXTENSIONS_DEFAULT AND ( + (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 4.7) OR + (CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang") + )) run_cmake(CMP0128-WARN) if(NOT CMAKE_CXX_STANDARD_DEFAULT EQUAL 11) run_cmake(CMP0128-NEW) |