diff options
author | Raul Tambre <raul@tambre.ee> | 2021-05-08 10:47:18 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-05-10 14:19:13 (GMT) |
commit | 9fbbebe3d03f2576a8c5d6284c6f122b99e232a9 (patch) | |
tree | dd8cb3886c7127b92d47183f217bbfdfda513087 /Modules/Compiler/GNU-CXX.cmake | |
parent | c9a1e06a18594640d548b1aec31ea9e07b0b5b82 (diff) | |
download | CMake-9fbbebe3d03f2576a8c5d6284c6f122b99e232a9.zip CMake-9fbbebe3d03f2576a8c5d6284c6f122b99e232a9.tar.gz CMake-9fbbebe3d03f2576a8c5d6284c6f122b99e232a9.tar.bz2 |
GNU: C++23 support
Added in GCC commit 78739c2df788ee5c868d998a6333d453317d8711, released in 11.1.
No lettered variant beforehand this time around.
Implements #22139.
Diffstat (limited to 'Modules/Compiler/GNU-CXX.cmake')
-rw-r--r-- | Modules/Compiler/GNU-CXX.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Compiler/GNU-CXX.cmake b/Modules/Compiler/GNU-CXX.cmake index c8357b2..b35f254 100644 --- a/Modules/Compiler/GNU-CXX.cmake +++ b/Modules/Compiler/GNU-CXX.cmake @@ -64,6 +64,8 @@ endif() if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 11.1) set(CMAKE_CXX20_STANDARD_COMPILE_OPTION "-std=c++20") set(CMAKE_CXX20_EXTENSION_COMPILE_OPTION "-std=gnu++20") + set(CMAKE_CXX23_STANDARD_COMPILE_OPTION "-std=c++23") + set(CMAKE_CXX23_EXTENSION_COMPILE_OPTION "-std=gnu++23") elseif(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 8.0) set(CMAKE_CXX20_STANDARD_COMPILE_OPTION "-std=c++2a") set(CMAKE_CXX20_EXTENSION_COMPILE_OPTION "-std=gnu++2a") |