Skip to content

Commit

Permalink
cmake: use CXX_STANDARD instead of a flag
Browse files Browse the repository at this point in the history
ref #74
  • Loading branch information
vaxerski committed Jun 6, 2024
1 parent bff005a commit 36d9741
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ function(protocol protoPath protoName external)
endfunction()

include_directories(.)
add_compile_options(-std=c++23 -DWLR_USE_UNSTABLE )
set(CMAKE_CXX_STANDARD 23)
add_compile_options(-DWLR_USE_UNSTABLE)
add_compile_options(-Wall -Wextra -Wno-unused-parameter -Wno-unused-value -Wno-missing-field-initializers -Wno-narrowing -Wno-pointer-arith)
find_package(Threads REQUIRED)

Expand Down

0 comments on commit 36d9741

Please sign in to comment.