diff options
author | Robert Maynard <rmaynard@nvidia.com> | 2022-08-19 20:17:30 (GMT) |
---|---|---|
committer | Robert Maynard <rmaynard@nvidia.com> | 2022-08-31 17:46:18 (GMT) |
commit | f808d8afb9d1e6d279a92cb16242a2eea9a8c5e6 (patch) | |
tree | e8b7486d10288e5f7f47db580b24d0fcfb92c47b /Tests/CompileFeatures | |
parent | 7b9757e50715ab6abc08e7005c66565f5c965de3 (diff) | |
download | CMake-f808d8afb9d1e6d279a92cb16242a2eea9a8c5e6.zip CMake-f808d8afb9d1e6d279a92cb16242a2eea9a8c5e6.tar.gz CMake-f808d8afb9d1e6d279a92cb16242a2eea9a8c5e6.tar.bz2 |
CMake: Support upcoming C++26 language level
Diffstat (limited to 'Tests/CompileFeatures')
-rw-r--r-- | Tests/CompileFeatures/CMakeLists.txt | 1 | ||||
-rw-r--r-- | Tests/CompileFeatures/genex_test.cpp | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/Tests/CompileFeatures/CMakeLists.txt b/Tests/CompileFeatures/CMakeLists.txt index c6d1e8a..f3d3a73 100644 --- a/Tests/CompileFeatures/CMakeLists.txt +++ b/Tests/CompileFeatures/CMakeLists.txt @@ -356,6 +356,7 @@ else() HAVE_CXX_STD_17=$<COMPILE_FEATURES:cxx_std_17> HAVE_CXX_STD_20=$<COMPILE_FEATURES:cxx_std_20> HAVE_CXX_STD_23=$<COMPILE_FEATURES:cxx_std_23> + HAVE_CXX_STD_26=$<COMPILE_FEATURES:cxx_std_26> ) endif() diff --git a/Tests/CompileFeatures/genex_test.cpp b/Tests/CompileFeatures/genex_test.cpp index 9c3910e..048f3de 100644 --- a/Tests/CompileFeatures/genex_test.cpp +++ b/Tests/CompileFeatures/genex_test.cpp @@ -27,6 +27,9 @@ # if HAVE_CXX_STD_23 && !defined(ALLOW_LATER_STANDARDS) # error HAVE_CXX_STD_23 is true with CXX_STANDARD == 11 # endif +# if HAVE_CXX_STD_26 && !defined(ALLOW_LATER_STANDARDS) +# error HAVE_CXX_STD_26 is true with CXX_STANDARD == 11 +# endif #endif #if !HAVE_OVERRIDE_CONTROL |