Merge pull request #9725

e662fa9de cmake: don't explicitely link libatomic (tobtoht)
This commit is contained in:
tobtoht 2025-02-04 18:44:04 +00:00
commit 796f031646
No known key found for this signature in database
GPG Key ID: E45B10DD027D2472

View File

@ -1162,17 +1162,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()