diff options
| author | Werner <led-control@vollstreckernet.de> | 2026-01-30 15:42:16 +0100 |
|---|---|---|
| committer | Mark Adler <git@madler.net> | 2026-01-31 20:15:09 -0800 |
| commit | f84a26421e5e241e4398f743e1595c3a8e6bd4d9 (patch) | |
| tree | c33158b464a0dad9d6dfd7961d6d389f6a685bcc | |
| parent | 46e7092741424ec15a55d7b2da7a515dc7933217 (diff) | |
| download | zlib-f84a26421e5e241e4398f743e1595c3a8e6bd4d9.tar.gz zlib-f84a26421e5e241e4398f743e1595c3a8e6bd4d9.tar.bz2 zlib-f84a26421e5e241e4398f743e1595c3a8e6bd4d9.zip | |
CMake: Make minizip buildable by itself.
| -rw-r--r-- | contrib/minizip/CMakeLists.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/minizip/CMakeLists.txt b/contrib/minizip/CMakeLists.txt index 9f95a4ee..fe357df2 100644 --- a/contrib/minizip/CMakeLists.txt +++ b/contrib/minizip/CMakeLists.txt | |||
| @@ -21,6 +21,16 @@ set(CPACK_RESOURCE_FILE_LICENSE ${minizip_SOURCE_DIR}/../../LICENSE) | |||
| 21 | set(CPACK_RESOURCE_FILE_README ${minizip_SOURCE_DIR}/MiniZip64_info.txt) | 21 | set(CPACK_RESOURCE_FILE_README ${minizip_SOURCE_DIR}/MiniZip64_info.txt) |
| 22 | 22 | ||
| 23 | # ============================================================================ | 23 | # ============================================================================ |
| 24 | # set options if build from zlib | ||
| 25 | # ============================================================================ | ||
| 26 | if(ZLIB_BUILD_MINIZIP) | ||
| 27 | set(MINIZIP_BUILD_SHARED ${ZLIB_MINIZIP_BUILD_SHARED} CACHE BOOL "") | ||
| 28 | set(MINIZIP_BUILD_STATIC ${ZLIB_MINIZIP_BUILD_STATIC} CACHE BOOL "") | ||
| 29 | set(MINIZIP_BUILD_TESTING ${ZLIB_MINIZIP_INSTALL} CACHE BOOL "") | ||
| 30 | set(MINIZIP_INSTALL ${ZLIB_MINIZIP_INSTALL} CACHE BOOL "") | ||
| 31 | endif(ZLIB_BUILD_MINIZIP) | ||
| 32 | |||
| 33 | # ============================================================================ | ||
| 24 | # configuration | 34 | # configuration |
| 25 | # ============================================================================ | 35 | # ============================================================================ |
| 26 | option(MINIZIP_BUILD_SHARED "Enable building minizip shared library" ON) | 36 | option(MINIZIP_BUILD_SHARED "Enable building minizip shared library" ON) |
