diff options
author | Raul Tambre <raul@tambre.ee> | 2023-05-16 06:51:07 (GMT) |
---|---|---|
committer | Raul Tambre <raul@tambre.ee> | 2023-05-16 06:51:07 (GMT) |
commit | 0183956d30283212bc66cde17d9756f18bc5db27 (patch) | |
tree | 3095d26d7256f68f5ad1aae2e8090c43dabe59ca /Modules/Compiler | |
parent | 0cae3228b8db86cb4ea63b68bd61c47f0a7ca5c6 (diff) | |
download | CMake-0183956d30283212bc66cde17d9756f18bc5db27.zip CMake-0183956d30283212bc66cde17d9756f18bc5db27.tar.gz CMake-0183956d30283212bc66cde17d9756f18bc5db27.tar.bz2 |
Clang: C++26 support
Added in LLVM commit b763d6a4ed4650c74c6846d743156468563b0e31.
This time the final flag form is supported from the get-go to reduce churn.
Diffstat (limited to 'Modules/Compiler')
-rw-r--r-- | Modules/Compiler/Clang.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Compiler/Clang.cmake b/Modules/Compiler/Clang.cmake index a21ba43..46f5fc1 100644 --- a/Modules/Compiler/Clang.cmake +++ b/Modules/Compiler/Clang.cmake @@ -176,6 +176,8 @@ macro(__compiler_clang_cxx_standards lang) if(NOT CMAKE_${lang}_COMPILER_VERSION VERSION_LESS 17.0) set(CMAKE_${lang}23_STANDARD_COMPILE_OPTION "-std=c++23") set(CMAKE_${lang}23_EXTENSION_COMPILE_OPTION "-std=gnu++23") + set(CMAKE_${lang}26_STANDARD_COMPILE_OPTION "-std=c++26") + set(CMAKE_${lang}26_EXTENSION_COMPILE_OPTION "-std=gnu++26") elseif(NOT CMAKE_${lang}_COMPILER_VERSION VERSION_LESS 12.0) set(CMAKE_${lang}23_STANDARD_COMPILE_OPTION "-std=c++2b") set(CMAKE_${lang}23_EXTENSION_COMPILE_OPTION "-std=gnu++2b") |