Merge pull request #2899 from felixhandte/cmake-disable-multithreading-android
Disable Multithreading in CMake Builds for Android
This commit is contained in:
commit
fd6c34f641
@ -92,8 +92,14 @@ else ()
|
|||||||
add_definitions(-DZSTD_LEGACY_SUPPORT=0)
|
add_definitions(-DZSTD_LEGACY_SUPPORT=0)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
if (ANDROID)
|
||||||
|
set(ZSTD_MULTITHREAD_SUPPORT_DEFAULT OFF)
|
||||||
|
else()
|
||||||
|
set(ZSTD_MULTITHREAD_SUPPORT_DEFAULT ON)
|
||||||
|
endif()
|
||||||
|
|
||||||
# Multi-threading support
|
# Multi-threading support
|
||||||
option(ZSTD_MULTITHREAD_SUPPORT "MULTITHREADING SUPPORT" ON)
|
option(ZSTD_MULTITHREAD_SUPPORT "MULTITHREADING SUPPORT" ${ZSTD_MULTITHREAD_SUPPORT_DEFAULT})
|
||||||
|
|
||||||
if (ZSTD_MULTITHREAD_SUPPORT)
|
if (ZSTD_MULTITHREAD_SUPPORT)
|
||||||
message(STATUS "ZSTD_MULTITHREAD_SUPPORT is enabled")
|
message(STATUS "ZSTD_MULTITHREAD_SUPPORT is enabled")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user