mirror of
https://github.com/hyprwm/hyprlang.git
synced 2024-11-16 18:25:57 +01:00
build: unbreak clang
This commit is contained in:
parent
689b405d9d
commit
78c16564ac
1 changed files with 6 additions and 0 deletions
|
@ -30,6 +30,12 @@ set_target_properties(hyprlang PROPERTIES
|
|||
SOVERSION 0
|
||||
PUBLIC_HEADER include/hyprlang.hpp)
|
||||
|
||||
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
# for std::expected.
|
||||
# probably evil. Arch's clang is very outdated tho...
|
||||
target_compile_options(hyprlang PUBLIC -std=gnu++2b -D__cpp_concepts=202002L -Wno-macro-redefined)
|
||||
endif()
|
||||
|
||||
install(TARGETS hyprlang)
|
||||
|
||||
# tests
|
||||
|
|
Loading…
Reference in a new issue