From d07c9d9a4d055b1a1e14f1cda46f0fbf1d73835d Mon Sep 17 00:00:00 2001 From: Vaxry Date: Thu, 28 Nov 2024 15:33:48 +0000 Subject: [PATCH] cmake: fix clang compilation --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2483c9f..80944d7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,6 +30,10 @@ else() message(STATUS "Configuring hyprgraphics in Release") endif() +if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") + add_compile_definitions(__cpp_concepts=202002L) +endif() + file(GLOB_RECURSE SRCFILES CONFIGURE_DEPENDS "src/*.cpp" "include/*.hpp") file(GLOB_RECURSE PUBLIC_HEADERS CONFIGURE_DEPENDS "include/*.hpp")