From 19b2dc5f3f2af8ad7467270279322998aaf84d3c Mon Sep 17 00:00:00 2001 From: Stanislav SHumkov <66177661+borz7zy@users.noreply.github.com> Date: Sat, 7 Mar 2026 22:47:20 +0100 Subject: [PATCH] macOS build fix Linking dependencies were wrapped in a check for Unix, not Apple. Apple doesn't have the atomic library, so it's not required for linking. --- Server/Source/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Server/Source/CMakeLists.txt b/Server/Source/CMakeLists.txt index 914e7d748..9f8acac51 100644 --- a/Server/Source/CMakeLists.txt +++ b/Server/Source/CMakeLists.txt @@ -35,7 +35,9 @@ if(MSVC) winmm ) else() - target_link_libraries(Server PRIVATE dl atomic) + if(UNIX AND NOT APPLE) + target_link_libraries(Server PRIVATE dl atomic) + endif() if(SHARED_STDCXXFS) target_link_libraries(Server PRIVATE stdc++fs)