Browse Source

feat(cmake): fix android cmake build issue

detail: NDK do not support find_package(Threads)
but NDK support threads!

FIXME: compnode support NON-cpu compnode on no support threads env

FXIME: may have issue if ANDROID support CUDA, need fix it
if need support this case
GitOrigin-RevId: 19af74a6af
tags/v1.3.1
Megvii Engine Team 4 years ago
parent
commit
610fecc97c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      CMakeLists.txt

+ 1
- 1
CMakeLists.txt View File

@@ -689,7 +689,7 @@ if(MSVC OR WIN32)
set(THREADS_PREFER_PTHREAD_FLAG ON)
endif()

if(CMAKE_THREAD_LIBS_INIT OR CMAKE_USE_WIN32_THREADS_INIT)
if(CMAKE_THREAD_LIBS_INIT OR CMAKE_USE_WIN32_THREADS_INIT OR ANDROID)
set(MGB_HAVE_THREAD 1)
endif()



Loading…
Cancel
Save