Skip to content

Commit

Permalink
Bump to C++23 to support std::optional.transform
Browse files Browse the repository at this point in the history
  • Loading branch information
BlakeFreer committed Dec 30, 2024
1 parent e485f2e commit d3671e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion firmware/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,11 @@ enable_language(C CXX ASM)
set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_C_EXTENSIONS ON)
set(CMAKE_CXX_STANDARD 20) # required for c++ concepts
set(CMAKE_CXX_STANDARD 23) # required for c++ concepts
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES ${CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES})
set(CMAKE_CXX_EXTENSIONS ON)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-psabi")

add_executable(main)

Expand Down

0 comments on commit d3671e0

Please sign in to comment.