aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-10-26 22:41:03 +0200
committerRiccardo Spagni <ric@spagni.net>2018-10-26 22:41:03 +0200
commitb9a5e47490dfc4092ee7d08054d2bc8a21a28779 (patch)
tree3e60550e46239f6e0458054293c667d6fb33271d
parentMerge pull request #4672 (diff)
parentCMakeLists.txt: only use libatomic when found (diff)
downloadmonero-b9a5e47490dfc4092ee7d08054d2bc8a21a28779.tar.xz
Merge pull request #4679
7d21c9b5 CMakeLists.txt: only use libatomic when found (moneromooo-monero)
-rw-r--r--CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ebef5b78f..3a685ee8e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -942,7 +942,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)