mirror of
https://github.com/zlib-ng/minizip-ng
synced 2025-03-28 21:13:18 +00:00
Same CMake Build zlib
I wanted to build zlib-ng within the same project, but I don't want to make a build-install step for that. The fetch function also did not work. So here I propose to use an existing zlib target, found in the current cmake project
This commit is contained in:
parent
e6eeb4ea52
commit
877e092d81
@ -187,6 +187,10 @@ if(MZ_ZLIB)
|
||||
|
||||
set(PC_PRIVATE_DEPS "zlib-ng")
|
||||
set(ZLIB_COMPAT OFF)
|
||||
elseif(TARGET zlib)
|
||||
message(STATUS "Using TARGET zlib")
|
||||
set(PC_PRIVATE_DEPS "zlib")
|
||||
list(APPEND MINIZIP_LIB zlib)
|
||||
elseif(ZLIB_FOUND AND NOT MZ_FORCE_FETCH_LIBS)
|
||||
message(STATUS "Using ZLIB ${ZLIB_VERSION}")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user