diff --git a/CMakeLists.txt b/CMakeLists.txt index 5bdef30..12f971e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,6 +67,9 @@ if (${IS_GNU} OR ${IS_CLANG}) include(FindOpenMP) if (OpenMP_CXX_FOUND) set(CMAKE_CXX_FLAGS "${OpenMP_CXX_FLAGS} ${CMAKE_CXX_FLAGS}") + if (ANDROID) + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-openmp") + endif() add_definitions(-D_GLIBCXX_PARALLEL) endif() endif()