From db940ff6591f9da6d7203bd9d9ae1ff84914585e Mon Sep 17 00:00:00 2001 From: Nathan Moinvaziri Date: Sat, 1 Jun 2024 16:44:53 -0700 Subject: [PATCH] Fixed zlib-ng build error about installing zlibstatic alias. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ed831937..623a7491 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)