From e662fa9defc1e6b61f29fa9f567ac7c20d5c8d98 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Sun, 26 Jan 2025 05:55:11 +0100 Subject: [PATCH] cmake: don't explicitely link libatomic --- CMakeLists.txt | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1e1bf1a94..a1e47b389 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1175,17 +1175,6 @@ elseif(USE_READLINE AND DEPENDS AND NOT MINGW) set(EPEE_READLINE epee_readline) endif() -if(ANDROID) - set(ATOMIC libatomic.a) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=user-defined-warnings") -endif() -if(CMAKE_C_COMPILER_ID MATCHES "Clang" AND ARCH_WIDTH EQUAL "32" AND NOT IOS AND NOT FREEBSD) - find_library(ATOMIC atomic) - if (ATOMIC_FOUND) - list(APPEND EXTRA_LIBRARIES ${ATOMIC}) - endif() -endif() - if(STATIC) set(sodium_USE_STATIC_LIBS ON) endif()