Fixed zlib-ng build error about installing zlibstatic alias.

This commit is contained in:
Nathan Moinvaziri 2024-06-01 16:44:53 -07:00
parent 1e402d2c2a
commit db940ff659

View File

@ -206,7 +206,7 @@ if(MZ_ZLIB)
list(APPEND MINIZIP_INC ${ZLIB_BINARY_DIR})
# Have to add zlib to install targets
if(NOT DEFINED BUILD_SHARED_LIBS OR NOT BUILD_SHARED_LIBS)
if(ZLIB_COMPAT AND (NOT DEFINED BUILD_SHARED_LIBS OR NOT BUILD_SHARED_LIBS))
list(APPEND MINIZIP_DEP zlibstatic)
else()
list(APPEND MINIZIP_DEP zlib)