diff options
| author | Maks <maks.service@proton.me> | 2022-11-21 22:20:51 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-21 21:20:51 +0000 |
| commit | 88874fcfe2f9e57171eb0641b5336ad09116ef55 (patch) | |
| tree | e100e4e229e87698c34a9bbf8bda372702db5a91 | |
| parent | d504c1e5ab84bcbf7648350e867ccdda9b38b9c4 (diff) | |
Fix cmake error when using clang (#1009)
| -rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b4561d8d..cafd4205 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...") |
