From c833a39a4d48784a2e9f1d3d2f604ffd5a9b5f07 Mon Sep 17 00:00:00 2001 From: MoroccanMalinois Date: Sat, 21 Jan 2017 04:15:00 +0000 Subject: cmake set atomic for android --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) 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}) -- cgit v1.2.3