Skip to content

Commit

Permalink
update cpp standard
Browse files Browse the repository at this point in the history
  • Loading branch information
emrekovanci committed Apr 28, 2024
1 parent ec7dc64 commit f46cabd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# Project
Language: Cpp
Standard: c++17
Standard: c++20
ColumnLimit: 120

# Indentation
Expand Down
2 changes: 1 addition & 1 deletion cmake/Platform/Common/CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"hidden": true,
"cacheVariables": {
"CMAKE_CXX_EXTENSIONS": "OFF",
"CMAKE_CXX_STANDARD": "17",
"CMAKE_CXX_STANDARD": "20",
"CMAKE_CXX_STANDARD_REQUIRED": "ON"
}
},
Expand Down
2 changes: 1 addition & 1 deletion library/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ add_library(Core
src/Core/Lib.cpp
)
target_include_directories(Core PUBLIC "$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/library/include>")
target_compile_features(Core PUBLIC cxx_std_17)
target_compile_features(Core PUBLIC cxx_std_20)

include(GenerateExportHeader)
generate_export_header(Core
Expand Down
2 changes: 1 addition & 1 deletion library/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set(CMAKE_CATCH_DISCOVER_TESTS_DISCOVERY_MODE PRE_TEST)

add_executable(CoreTests Tests.cpp)
target_link_libraries(CoreTests PRIVATE Core Catch2::Catch2WithMain)
target_compile_features(CoreTests PRIVATE cxx_std_17)
target_compile_features(CoreTests PRIVATE cxx_std_20)

# ---- Tests ----

Expand Down

0 comments on commit f46cabd

Please sign in to comment.