Add cmake subdirectory support to clone_repo macro for zstd.

This commit is contained in:
Nathan Moinvaziri 2026-03-02 16:28:59 -08:00
parent 9975579a7f
commit b6bf9914db
No known key found for this signature in database
2 changed files with 23 additions and 8 deletions

View file

@ -422,7 +422,7 @@ if(MZ_ZSTD)
elseif(MZ_FETCH_LIBS)
set(ZSTD_BUILD_PROGRAMS OFF CACHE BOOL "Build zstd programs")
clone_repo(zstd https://github.com/facebook/zstd release)
clone_repo(zstd https://github.com/facebook/zstd release build/cmake)
list(APPEND MINIZIP_INC ${ZSTD_SOURCE_DIR}/lib)
if(NOT DEFINED BUILD_SHARED_LIBS OR NOT ${BUILD_SHARED_LIBS})