aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMoroccanMalinois <MoroccanMalinois@protonmail.com>2017-01-21 04:15:00 +0000
committerMoroccanMalinois <MoroccanMalinois@protonmail.com>2017-02-05 04:33:33 +0100
commitc833a39a4d48784a2e9f1d3d2f604ffd5a9b5f07 (patch)
tree7aeb97e344758968c34b358632357650e5c14f9d /CMakeLists.txt
parentMerge pull request #1669 (diff)
downloadmonero-c833a39a4d48784a2e9f1d3d2f604ffd5a9b5f07.tar.xz
cmake set atomic for android
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 454a462f1..1bc6c4936 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -619,6 +619,9 @@ endif()
list(APPEND EXTRA_LIBRARIES ${CMAKE_DL_LIBS})
+if(ANDROID)
+ set(ATOMIC libatomic.a)
+endif()
if(CMAKE_C_COMPILER_ID STREQUAL "Clang" AND ARCH_WIDTH EQUAL "32")
find_library(ATOMIC atomic)
list(APPEND EXTRA_LIBRARIES ${ATOMIC})