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

CMake: Make bzip2 optional.

This commit is contained in:
Vollstrecker 2024-12-27 16:15:03 +01:00 committed by Mark Adler
parent d82da0fd15
commit ede311d685

View File

@ -166,8 +166,9 @@ if(MINIZIP_BUILD_SHARED)
VERSIOM ${minizip_VERSION}
SOVERSION ${minizip_VERSION_MAJOR})
target_link_libraries(libminizip
PUBLIC
PRIVATE
$<$<BOOL:${BZIP2_FOUND}>:BZip2::BZip2>
PUBLIC
ZLIB::ZLIB)
add_executable(minizip
@ -221,8 +222,9 @@ if(MINIZIP_BUILD_STATIC)
endif(CYGWIN)
target_link_libraries(libminizipstatic
PUBLIC
PRIVATE
$<$<BOOL:${BZIP2_FOUND}>:BZip2::BZip2>
PUBLIC
ZLIB::ZLIBSTATIC)
add_executable(minizipstatic