1
0
mirror of https://github.com/madler/zlib synced 2025-03-28 21:13:15 +00:00

CMake: Do not link to bzip2.

This commit is contained in:
Vollstrecker 2024-12-30 11:13:59 +01:00 committed by Mark Adler
parent 8fee881981
commit d51255713b

View File

@ -170,11 +170,7 @@ if(MINIZIP_BUILD_SHARED)
OUTPUT_NAME minizip
VERSIOM ${minizip_VERSION}
SOVERSION ${minizip_VERSION_MAJOR})
target_link_libraries(libminizip
PRIVATE
$<$<BOOL:${BZIP2_FOUND}>:BZip2::BZip2>
PUBLIC
ZLIB::ZLIB)
target_link_libraries(libminizip PUBLIC ZLIB::ZLIB)
add_executable(minizip
${MINIZIP_SRCS}
@ -224,12 +220,7 @@ if(MINIZIP_BUILD_STATIC)
SUFFIX ".dll.a")
endif(CYGWIN)
target_link_libraries(libminizipstatic
PRIVATE
$<$<BOOL:${BZIP2_FOUND}>:BZip2::BZip2>
PUBLIC
ZLIB::ZLIBSTATIC)
target_link_libraries(libminizipstatic PUBLIC ZLIB::ZLIBSTATIC)
add_executable(minizipstatic
${MINIZIP_SRCS}
${MINIZIP_HDRS})