This is an automated email from the ASF dual-hosted git repository.
cmcfarlen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 4afe282f22 Change default C++ standard to 20 (#10910)
4afe282f22 is described below
commit 4afe282f22950eca898f86015d5e1f868b8ec1c6
Author: Chris McFarlen <[email protected]>
AuthorDate: Fri Dec 8 12:41:42 2023 -0600
Change default C++ standard to 20 (#10910)
---
CMakeLists.txt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2d2b543046..6614f80559 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)