1
0
Fork 0
mirror of https://git.wownero.com/wownero/wownero.git synced 2024-08-15 01:03:23 +00:00

CMakeLists.txt: only use libatomic when found

This commit is contained in:
moneromooo-monero 2018-10-20 21:36:51 +00:00
parent 5c85da5a73
commit 7d21c9b573
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3

View file

@ -937,7 +937,9 @@ 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)
list(APPEND EXTRA_LIBRARIES ${ATOMIC})
if (ATOMIC_FOUND)
list(APPEND EXTRA_LIBRARIES ${ATOMIC})
endif()
endif()
find_path(ZMQ_INCLUDE_PATH zmq.hpp)