From 743f7b3c9589641f2f6ba35f7dcc1c6913b95c03 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 7 Oct 2023 02:59:18 +0200 Subject: fix even harder --- CMakeLists.txt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 31dd8df4..af3f1d13 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -147,12 +147,17 @@ else() endif() endif() -if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND NOT APPLE) +if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang") add_compile_definitions($<$:$<$:_LIBCPP_ENABLE_ASSERTIONS>>) add_compile_options(-Wno-reserved-macro-identifier) add_compile_options($<$:-Wno-ambiguous-reversed-operator>) - add_compile_options(-fmodules) - add_link_options(-fmodules) + if (NOT APPLE) + add_compile_options(-fmodules) + add_link_options(-fmodules) + else() + add_compile_options(-fno-modules) + add_link_options(-fno-modules) + endif() endif() set_directory_properties(PROPERTIES CORRADE_USE_PEDANTIC_FLAGS OFF) -- cgit v1.2.3