From 6119689b60da28d05ff5972ffab0d954475e9da9 Mon Sep 17 00:00:00 2001 From: Chris McFarlen Date: Fri, 8 Dec 2023 10:09:09 -0600 Subject: [PATCH] Change default C++ standard to 20 --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2d2b5430466..6614f805597 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,8 +32,8 @@ math(EXPR TS_VERSION_NUMBER "${TS_VERSION_MAJOR} * 1000000 + ${TS_VERSION_MINOR} # for testing purposes. For example, it can be used on CI to check compatibility # with a newer standard than what our codebase currently has to comply with. set(CMAKE_CXX_STANDARD - 17 - CACHE STRING "The C++ standard to compile with (default 17)" + 20 + CACHE STRING "The C++ standard to compile with (default 20)" ) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF)