提交 610fecc9 编写于 作者: M Megvii Engine Team

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: 19af74a6af07c541503fc46031d84676cc948b29
上级 2df84754
......@@ -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()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册