cmake: Set standard exclusively for c++ (#150)

This commit is contained in:
staz 2024-03-17 21:12:38 +05:00 committed by GitHub
parent f57d991e3a
commit 518adcaf90
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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