diff --git a/CMakeLists.txt b/CMakeLists.txt index 1c40f24c..35578923 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()