mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-27 05:13:25 +01:00
CMakeLists.txt: only use libatomic when found
This commit is contained in:
parent
5c85da5a73
commit
7d21c9b573
@ -937,8 +937,10 @@ if(ANDROID)
|
|||||||
endif()
|
endif()
|
||||||
if(CMAKE_C_COMPILER_ID STREQUAL "Clang" AND ARCH_WIDTH EQUAL "32" AND NOT IOS AND NOT FREEBSD)
|
if(CMAKE_C_COMPILER_ID STREQUAL "Clang" AND ARCH_WIDTH EQUAL "32" AND NOT IOS AND NOT FREEBSD)
|
||||||
find_library(ATOMIC atomic)
|
find_library(ATOMIC atomic)
|
||||||
|
if (ATOMIC_FOUND)
|
||||||
list(APPEND EXTRA_LIBRARIES ${ATOMIC})
|
list(APPEND EXTRA_LIBRARIES ${ATOMIC})
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
find_path(ZMQ_INCLUDE_PATH zmq.hpp)
|
find_path(ZMQ_INCLUDE_PATH zmq.hpp)
|
||||||
find_library(ZMQ_LIB zmq)
|
find_library(ZMQ_LIB zmq)
|
||||||
|
Loading…
Reference in New Issue
Block a user