Skip to content

Commit f46cabd

Browse files
committed
update cpp standard
1 parent ec7dc64 commit f46cabd

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.clang-format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# Project
55
Language: Cpp
6-
Standard: c++17
6+
Standard: c++20
77
ColumnLimit: 120
88

99
# Indentation

cmake/Platform/Common/CMakePresets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"hidden": true,
1313
"cacheVariables": {
1414
"CMAKE_CXX_EXTENSIONS": "OFF",
15-
"CMAKE_CXX_STANDARD": "17",
15+
"CMAKE_CXX_STANDARD": "20",
1616
"CMAKE_CXX_STANDARD_REQUIRED": "ON"
1717
}
1818
},

library/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ add_library(Core
55
src/Core/Lib.cpp
66
)
77
target_include_directories(Core PUBLIC "$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/library/include>")
8-
target_compile_features(Core PUBLIC cxx_std_17)
8+
target_compile_features(Core PUBLIC cxx_std_20)
99

1010
include(GenerateExportHeader)
1111
generate_export_header(Core

library/test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set(CMAKE_CATCH_DISCOVER_TESTS_DISCOVERY_MODE PRE_TEST)
77

88
add_executable(CoreTests Tests.cpp)
99
target_link_libraries(CoreTests PRIVATE Core Catch2::Catch2WithMain)
10-
target_compile_features(CoreTests PRIVATE cxx_std_17)
10+
target_compile_features(CoreTests PRIVATE cxx_std_20)
1111

1212
# ---- Tests ----
1313

0 commit comments

Comments
 (0)