From 6f000286d82e23dddf250b449d6dabf5cb86125e Mon Sep 17 00:00:00 2001 From: Ioannis Magkanaris Date: Wed, 12 Aug 2026 09:46:31 +0200 Subject: [PATCH] Don't link with atomic if built with apple clang --- cmake/oomph_common.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()