diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-10-26 22:41:03 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-10-26 22:41:03 +0200 |
commit | b9a5e47490dfc4092ee7d08054d2bc8a21a28779 (patch) | |
tree | 3e60550e46239f6e0458054293c667d6fb33271d | |
parent | Merge pull request #4672 (diff) | |
parent | CMakeLists.txt: only use libatomic when found (diff) | |
download | monero-b9a5e47490dfc4092ee7d08054d2bc8a21a28779.tar.xz |
Merge pull request #4679
7d21c9b5 CMakeLists.txt: only use libatomic when found (moneromooo-monero)
-rw-r--r-- | CMakeLists.txt | 4 |
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) |