Skip to content

Commit

Permalink
build: use static omp in Android
Browse files Browse the repository at this point in the history
  • Loading branch information
ebraraktas committed Jan 12, 2024
1 parent c95fd4e commit d9863be
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,11 @@ endif()
if(NOT OPENMP_RUNTIME STREQUAL "NONE")
if(WIN32)
add_compile_options("/openmp")
elseif(ANDROID)
# use static omp in Android
set(OpenMP_CXX_LIBRARIES -fopenmp -static-openmp)
add_compile_options("-fopenmp")
set(OpenMP_CXX_FOUND 1)
else()
find_package(OpenMP)
if(OpenMP_CXX_FOUND)
Expand Down

0 comments on commit d9863be

Please sign in to comment.