diff --git a/CMakeLists.txt b/CMakeLists.txt index 1c40f24c1b270371fb72090da7d593f1c6e0e4bc..3557892339c30a4a644c8e8b8027b9a911e037cb 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()