Browse Source

fix cmake (#1823)

tags/20200616
JackieWu GitHub 6 years ago
parent
commit
c61a60bfc6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/CMakeLists.txt

+ 1
- 1
src/CMakeLists.txt View File

@@ -410,7 +410,7 @@ if(NCNN_OPENMP AND (OpenMP_CXX_FOUND OR OPENMP_FOUND))
message("Building with OpenMP")
endif()

if(DEFINED ANDROID_NDK_MAJOR AND ${ANDROID_NDK_MAJOR} GREATER 20)
if(ANDROID_NDK_MAJOR AND (ANDROID_NDK_MAJOR GREATER 20))
target_compile_options(ncnn PRIVATE -fopenmp)
target_link_libraries(ncnn PUBLIC -fopenmp -static-openmp)
elseif(OpenMP_CXX_FOUND)


Loading…
Cancel
Save