From 10fd31a5444d25ab81c8105f2df1b4cb0cba68e5 Mon Sep 17 00:00:00 2001 From: Tamamizu <43539018+bekaertruben@users.noreply.github.com> Date: Wed, 12 Apr 2023 16:11:45 +0200 Subject: [PATCH] Fix compilation with clang (#61) Using `-std=c++2b` instead of `-std=c++23` allows compilation with clang instead of gcc. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 13bbc26..285cfac 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,7 +36,7 @@ execute_process( # include_directories(.) -add_compile_options(-std=c++23 -DWLR_USE_UNSTABLE ) +add_compile_options(-std=c++2b -DWLR_USE_UNSTABLE ) add_compile_options(-Wall -Wextra -Wno-unused-parameter -Wno-unused-value -Wno-missing-field-initializers -Wno-narrowing) find_package(Threads REQUIRED) @@ -76,4 +76,4 @@ IF(CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES DEBUG) SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pg -no-pie -fno-builtin") SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pg -no-pie -fno-builtin") SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -pg -no-pie -fno-builtin") -ENDIF(CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES DEBUG) \ No newline at end of file +ENDIF(CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES DEBUG)