mirror of
https://github.com/hyprwm/hyprcursor.git
synced 2024-11-16 18:25:58 +01:00
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
This commit is contained in:
parent
4b9efbed7a
commit
e3694ecf2f
1 changed files with 3 additions and 1 deletions
|
@ -48,7 +48,9 @@ target_link_libraries(hyprcursor PkgConfig::deps)
|
||||||
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||||
# for std::expected.
|
# for std::expected.
|
||||||
# probably evil. Arch's clang is very outdated tho...
|
# 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
|
||||||
|
$<$<COMPILE_LANGUAGE:CXX>:-std=gnu++2b -D__cpp_concepts=202002L>
|
||||||
|
-Wno-builtin-macro-redefined)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# hyprcursor-util
|
# hyprcursor-util
|
||||||
|
|
Loading…
Reference in a new issue