From e3694ecf2fb9b190005f157e9860c4b7e0bbc0ff Mon Sep 17 00:00:00 2001 From: Rudolchr <72916442+Rudolchr@users.noreply.github.com> Date: Mon, 18 Mar 2024 17:48:04 +0100 Subject: [PATCH] cmake: Fix clang build by adjusting passed flags (#11) * Just add -std=gnu++2b to clang++ or clang will error out * Assuming it was meant to silence the __cpp_concepts warning that appears by passing it via flags --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a229cdf..7629467 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,7 +48,9 @@ target_link_libraries(hyprcursor PkgConfig::deps) if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") # for std::expected. # probably evil. Arch's clang is very outdated tho... - target_compile_options(hyprcursor PUBLIC -std=gnu++2b -D__cpp_concepts=202002L -Wno-macro-redefined) + target_compile_options(hyprcursor PUBLIC + $<$:-std=gnu++2b -D__cpp_concepts=202002L> + -Wno-builtin-macro-redefined) endif() # hyprcursor-util