From 8f8871454c1327ef5149facff6534603293939f9 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 26 Sep 2024 16:02:47 +0200 Subject: [PATCH] Fix macos build, hopefully. --- cmake/config.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/config.cmake b/cmake/config.cmake index 94dbc92a..4370ad64 100644 --- a/cmake/config.cmake +++ b/cmake/config.cmake @@ -25,6 +25,10 @@ else() set(USE_WAYLAND OFF) endif() +if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") + add_compile_options(-fexperimental-library) +endif() + if(WIN32) add_definitions(-DNOMINMAX -DWIN32_LEAN_AND_MEAN -D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR) add_compile_options(/MP)