From 27e06cf47ef840209370a8d8b9d0e5e0e7360c79 Mon Sep 17 00:00:00 2001 From: Maks-s Date: Mon, 21 Nov 2022 22:51:05 +0100 Subject: [PATCH] Fix cmake error when using clang --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b4561d8d5d4..cafd4205786 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,7 +45,8 @@ ENDIF(CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES DEBUG) include_directories(. PRIVATE "subprojects/wlroots/include/") include_directories(. PRIVATE "subprojects/wlroots/build/include/") -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) message(STATUS "Checking deps...")