aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorVollstrecker <werner@vollstreckernet.de>2024-12-27 16:15:03 +0100
committerMark Adler <madler@alumni.caltech.edu>2025-01-31 20:01:41 -0800
commitede311d685a536fbf4a287818b70412baa14ca76 (patch)
tree51194256515bbf196b5c30b790a625cb0351dc57 /contrib
parentd82da0fd1586f6df3fa1c5751f627a12bda8d2fe (diff)
downloadzlib-ede311d685a536fbf4a287818b70412baa14ca76.tar.gz
zlib-ede311d685a536fbf4a287818b70412baa14ca76.tar.bz2
zlib-ede311d685a536fbf4a287818b70412baa14ca76.zip
CMake: Make bzip2 optional.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/minizip/CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/minizip/CMakeLists.txt b/contrib/minizip/CMakeLists.txt
index 932476c..b97a626 100644
--- a/contrib/minizip/CMakeLists.txt
+++ b/contrib/minizip/CMakeLists.txt
@@ -166,8 +166,9 @@ if(MINIZIP_BUILD_SHARED)
166 VERSIOM ${minizip_VERSION} 166 VERSIOM ${minizip_VERSION}
167 SOVERSION ${minizip_VERSION_MAJOR}) 167 SOVERSION ${minizip_VERSION_MAJOR})
168 target_link_libraries(libminizip 168 target_link_libraries(libminizip
169 PUBLIC 169 PRIVATE
170 $<$<BOOL:${BZIP2_FOUND}>:BZip2::BZip2> 170 $<$<BOOL:${BZIP2_FOUND}>:BZip2::BZip2>
171 PUBLIC
171 ZLIB::ZLIB) 172 ZLIB::ZLIB)
172 173
173 add_executable(minizip 174 add_executable(minizip
@@ -221,8 +222,9 @@ if(MINIZIP_BUILD_STATIC)
221 endif(CYGWIN) 222 endif(CYGWIN)
222 223
223 target_link_libraries(libminizipstatic 224 target_link_libraries(libminizipstatic
224 PUBLIC 225 PRIVATE
225 $<$<BOOL:${BZIP2_FOUND}>:BZip2::BZip2> 226 $<$<BOOL:${BZIP2_FOUND}>:BZip2::BZip2>
227 PUBLIC
226 ZLIB::ZLIBSTATIC) 228 ZLIB::ZLIBSTATIC)
227 229
228 add_executable(minizipstatic 230 add_executable(minizipstatic