Merge pull request #4679

7d21c9b5 CMakeLists.txt: only use libatomic when found (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2018-10-26 22:41:03 +02:00
commit b9a5e47490
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD

View File

@ -942,8 +942,10 @@ if(ANDROID)
endif()
if(CMAKE_C_COMPILER_ID STREQUAL "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()
find_path(ZMQ_INCLUDE_PATH zmq.hpp)
find_library(ZMQ_LIB zmq)