CMakeLists.txt: Link OpenMP statically on Android
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
parent
8a7f556520
commit
1a9b549f9b
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue