Skip to content

Commit

Permalink
Upgrade to C++23
Browse files Browse the repository at this point in the history
  • Loading branch information
pwojcikdev committed Dec 30, 2024
1 parent 60a44d6 commit 79a0ba8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD_REQUIRED ON)
# set(CMAKE_C_EXTENSIONS OFF)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# set(CMAKE_CXX_EXTENSIONS OFF)

Expand Down Expand Up @@ -537,6 +537,13 @@ else()
endif()
add_subdirectory(submodules/rocksdb EXCLUDE_FROM_ALL)

# RocksDB does not support C++23 at this time
set_target_properties(rocksdb PROPERTIES
CXX_STANDARD 20
CXX_STANDARD_REQUIRED ON
CXX_EXTENSIONS OFF
)

# cpptoml
include_directories(submodules/cpptoml/include)

Expand Down

0 comments on commit 79a0ba8

Please sign in to comment.