diff options
author | Brad King <brad.king@kitware.com> | 2023-05-18 13:21:24 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-05-18 13:22:02 (GMT) |
commit | b6c45d28b2e2cd45fe69fc68c6ca2f1fefe9afd9 (patch) | |
tree | 9b7d89db8a0d3a053b3668f03360c67c62288e11 /Modules/Compiler | |
parent | fed7b2f20e31598d2bdb27510c92bc05bab49739 (diff) | |
parent | 0183956d30283212bc66cde17d9756f18bc5db27 (diff) | |
download | CMake-b6c45d28b2e2cd45fe69fc68c6ca2f1fefe9afd9.zip CMake-b6c45d28b2e2cd45fe69fc68c6ca2f1fefe9afd9.tar.gz CMake-b6c45d28b2e2cd45fe69fc68c6ca2f1fefe9afd9.tar.bz2 |
Merge topic 'clang_cxx26'
0183956d30 Clang: C++26 support
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8480
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") |