Skip to content

Commit 93ad6fc

Browse files
committed
Fix linking of installed zlib-ng
1 parent 627ba93 commit 93ad6fc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,7 @@ if(MZ_ZLIB)
195195
if(ZLIB-NG_FOUND AND NOT MZ_FORCE_FETCH_LIBS)
196196
message(STATUS "Using ZLIB-NG")
197197

198-
list(APPEND MINIZIP_INC ${ZLIB-NG_INCLUDE_DIRS})
199-
list(APPEND MINIZIP_LIB ${ZLIB-NG_LIBRARIES})
200-
list(APPEND MINIZIP_LBD ${ZLIB-NG_LIBRARY_DIRS})
198+
list(APPEND MINIZIP_LIB zlib-ng::zlib)
201199

202200
set(PC_PRIVATE_DEPS "zlib-ng")
203201
set(ZLIB_COMPAT OFF)

0 commit comments

Comments
 (0)