From: W. Felix Handte Date: Thu, 2 Dec 2021 22:23:42 +0000 (-0500) Subject: Disable Multithreading in CMake Builds for Android X-Git-Tag: v1.5.1~1^2~32^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2899%2Fhead;p=thirdparty%2Fzstd.git Disable Multithreading in CMake Builds for Android --- diff --git a/build/cmake/CMakeLists.txt b/build/cmake/CMakeLists.txt index a0505778a..93a167caf 100644 --- a/build/cmake/CMakeLists.txt +++ b/build/cmake/CMakeLists.txt @@ -92,8 +92,14 @@ else () add_definitions(-DZSTD_LEGACY_SUPPORT=0) endif () +if (ANDROID) + set(ZSTD_MULTITHREAD_SUPPORT_DEFAULT OFF) +else() + set(ZSTD_MULTITHREAD_SUPPORT_DEFAULT ON) +endif() + # Multi-threading support -option(ZSTD_MULTITHREAD_SUPPORT "MULTITHREADING SUPPORT" ON) +option(ZSTD_MULTITHREAD_SUPPORT "MULTITHREADING SUPPORT" ${ZSTD_MULTITHREAD_SUPPORT_DEFAULT}) if (ZSTD_MULTITHREAD_SUPPORT) message(STATUS "ZSTD_MULTITHREAD_SUPPORT is enabled")