summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorXing Xue <xingxue@outlook.com>2023-09-25 20:39:35 (GMT)
committerBrad King <brad.king@kitware.com>2023-09-25 23:05:31 (GMT)
commit961a0772383104431ff49087e32a41d16393fb9c (patch)
treeabcd1a86c4744cb8532f3d018ab6e02bceee6f22 /Modules
parent9575e6f57bf21244d48aaf041bb0c975c8dbcd49 (diff)
downloadCMake-961a0772383104431ff49087e32a41d16393fb9c.zip
CMake-961a0772383104431ff49087e32a41d16393fb9c.tar.gz
CMake-961a0772383104431ff49087e32a41d16393fb9c.tar.bz2
IBMClang: Add provisional flags for C++23
With this one can use the IBM Open XL C/C++ compiler to build projects that require feature `cxx_std_23`.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Compiler/IBMClang-CXX.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Compiler/IBMClang-CXX.cmake b/Modules/Compiler/IBMClang-CXX.cmake
index 5431b17..be9b525 100644
--- a/Modules/Compiler/IBMClang-CXX.cmake
+++ b/Modules/Compiler/IBMClang-CXX.cmake
@@ -31,6 +31,8 @@ if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 17.1.0)
set(CMAKE_CXX17_EXTENSION_COMPILE_OPTION "-std=gnu++17")
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++2b")
+ set(CMAKE_CXX23_EXTENSION_COMPILE_OPTION "-std=gnu++2b")
endif()
__compiler_check_default_language_standard(CXX 17.1.0 17)