summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-10-07 02:59:18 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-10-07 02:59:18 +0200
commit743f7b3c9589641f2f6ba35f7dcc1c6913b95c03 (patch)
tree9ed13c695140b7a02be275940d87048878589398
parent78cd1f4487528557bcebbbd6729c3f8a61d67b50 (diff)
fix even harder
-rw-r--r--CMakeLists.txt11
1 files 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($<$<COMPILE_LANGUAGE:CXX>:$<$<CONFIG:DEBUG,Debug>:_LIBCPP_ENABLE_ASSERTIONS>>)
add_compile_options(-Wno-reserved-macro-identifier)
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-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)