@@ -173,17 +173,17 @@ endif()
173
173
if (MZ_ZLIB)
174
174
# Check if zlib is present
175
175
if (NOT MZ_FORCE_FETCH_LIBS)
176
- find_package (ZLIBNG QUIET )
176
+ find_package (ZLIB-NG QUIET )
177
177
find_package (ZLIB QUIET )
178
178
set (ZLIB_VERSION ${ZLIB_VERSION_STRING} )
179
179
endif ()
180
180
181
- if (ZLIBNG_FOUND AND NOT MZ_FORCE_FETCH_LIBS)
182
- message (STATUS "Using ZLIBNG " )
181
+ if (ZLIB-NG_FOUND AND NOT MZ_FORCE_FETCH_LIBS)
182
+ message (STATUS "Using ZLIB-NG " )
183
183
184
- list (APPEND MINIZIP_INC ${ZLIBNG_INCLUDE_DIRS } )
185
- list (APPEND MINIZIP_LIB ${ZLIBNG_LIBRARIES } )
186
- list (APPEND MINIZIP_LBD ${ZLIBNG_LIBRARY_DIRS } )
184
+ list (APPEND MINIZIP_INC ${ZLIB-NG_INCLUDE_DIRS })
185
+ list (APPEND MINIZIP_LIB ${ZLIB-NG_LIBRARIES })
186
+ list (APPEND MINIZIP_LBD ${ZLIB-NG_LIBRARY_DIRS })
187
187
188
188
set (PC_PRIVATE_DEPS "zlib-ng" )
189
189
set (ZLIB_COMPAT OFF )
@@ -215,7 +215,7 @@ if(MZ_ZLIB)
215
215
endif ()
216
216
217
217
if (EXISTS "${ZLIB_BINARY_DIR} /zlib-ng.h" )
218
- message (STATUS "ZLIB repository detected as ZLIBNG " )
218
+ message (STATUS "ZLIB repository detected as ZLIB-NG " )
219
219
set (ZLIB_COMPAT OFF )
220
220
else ()
221
221
set (ZLIB_COMPAT ON )
@@ -231,8 +231,8 @@ if(MZ_ZLIB)
231
231
if (ZLIB_COMPAT)
232
232
list (APPEND MINIZIP_DEF -DZLIB_COMPAT)
233
233
endif ()
234
- if (ZLIBNG_FOUND OR NOT ZLIB_COMPAT)
235
- list (APPEND MINIZIP_DEP_PKG ZLIBNG )
234
+ if (ZLIB-NG_FOUND OR NOT ZLIB_COMPAT)
235
+ list (APPEND MINIZIP_DEP_PKG ZLIB-NG )
236
236
elseif (ZLIB_FOUND)
237
237
list (APPEND MINIZIP_DEP_PKG ZLIB)
238
238
endif ()
0 commit comments