diff options
author | Brad King <brad.king@kitware.com> | 2019-05-14 14:51:49 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-05-14 14:52:17 (GMT) |
commit | e0ab9e1cb9b07a1a320db6a788442cd9bc2a98c6 (patch) | |
tree | d18eaa54a7c38aa74e4e6706ff28d9776ce55721 /Modules/Compiler/AppleClang-CXX.cmake | |
parent | 9ca45a51ae5ee511988728a84764e1b9eacf8f51 (diff) | |
parent | 9523ca72e29350b66c37e60f9db6a8025f67cad1 (diff) | |
download | CMake-e0ab9e1cb9b07a1a320db6a788442cd9bc2a98c6.zip CMake-e0ab9e1cb9b07a1a320db6a788442cd9bc2a98c6.tar.gz CMake-e0ab9e1cb9b07a1a320db6a788442cd9bc2a98c6.tar.bz2 |
Merge topic 'apple_clang_cxx_20_support'
9523ca72e2 Features: Activate C++20 support for AppleClang 10.0+
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3294
Diffstat (limited to 'Modules/Compiler/AppleClang-CXX.cmake')
-rw-r--r-- | Modules/Compiler/AppleClang-CXX.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/Compiler/AppleClang-CXX.cmake b/Modules/Compiler/AppleClang-CXX.cmake index 861a15c..3fa6990 100644 --- a/Modules/Compiler/AppleClang-CXX.cmake +++ b/Modules/Compiler/AppleClang-CXX.cmake @@ -30,9 +30,13 @@ if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 6.1) set(CMAKE_CXX17_EXTENSION_COMPILE_OPTION "-std=gnu++1z") endif() - if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 8.0) set(CMAKE_CXX11_STANDARD__HAS_FULL_SUPPORT ON) endif() +if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 10.0) + set(CMAKE_CXX20_STANDARD_COMPILE_OPTION "-std=c++2a") + set(CMAKE_CXX20_EXTENSION_COMPILE_OPTION "-std=gnu++2a") +endif() + __compiler_check_default_language_standard(CXX 4.0 98) |