diff --git a/cmake/oomph_common.cmake b/cmake/oomph_common.cmake index 317b10b..cf147d5 100644 --- a/cmake/oomph_common.cmake +++ b/cmake/oomph_common.cmake @@ -46,7 +46,7 @@ function(oomph_shared_lib_options target) oomph_target_compile_options(${target}) oomph_target_link_options(${target}) target_link_libraries(${target} PUBLIC HWMALLOC::hwmalloc) - if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") + if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND NOT APPLE) target_link_libraries(${target} PUBLIC atomic) endif() endfunction()