From 518adcaf9046d8e15a256048869cfb9de2e5f752 Mon Sep 17 00:00:00 2001 From: staz Date: Sun, 17 Mar 2024 21:12:38 +0500 Subject: [PATCH] cmake: Set standard exclusively for c++ (#150) --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 05ba13e..bddd18d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -65,7 +65,8 @@ function(protocol protoPath protoName external) endfunction() 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) find_package(Threads REQUIRED)