cmake: use CXX_STANDARD instead of a flag

ref #74
This commit is contained in:
Vaxry 2024-06-06 11:49:13 +02:00
parent bff005ac9c
commit 36d974181d

View file

@ -66,7 +66,8 @@ function(protocol protoPath protoName external)
endfunction() endfunction()
include_directories(.) 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) add_compile_options(-Wall -Wextra -Wno-unused-parameter -Wno-unused-value -Wno-missing-field-initializers -Wno-narrowing -Wno-pointer-arith)
find_package(Threads REQUIRED) find_package(Threads REQUIRED)