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 Aug 7, 2024
1 parent e6a8f94 commit ac1a12a
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 @@ -268,6 +268,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 ac1a12a

Please sign in to comment.