diff options
| author | Vollstrecker <werner@vollstreckernet.de> | 2025-12-24 14:19:16 +0100 |
|---|---|---|
| committer | Mark Adler <git@madler.net> | 2026-01-31 20:13:05 -0800 |
| commit | 8089c7dcb3dfc569a4c3e3681b020f7f85656f9e (patch) | |
| tree | b0d51cceb3054264843e38939e201d9f1ca2d92f | |
| parent | 3e9680762bf7e8c3fe710d1e99753e88abf009d3 (diff) | |
| download | zlib-8089c7dcb3dfc569a4c3e3681b020f7f85656f9e.tar.gz zlib-8089c7dcb3dfc569a4c3e3681b020f7f85656f9e.tar.bz2 zlib-8089c7dcb3dfc569a4c3e3681b020f7f85656f9e.zip | |
CMake: Use a normal components search in minizip.
| -rw-r--r-- | contrib/minizip/minizipConfig.cmake.in | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/contrib/minizip/minizipConfig.cmake.in b/contrib/minizip/minizipConfig.cmake.in index 88ea0a08..f2fb3052 100644 --- a/contrib/minizip/minizipConfig.cmake.in +++ b/contrib/minizip/minizipConfig.cmake.in | |||
| @@ -1,16 +1,8 @@ | |||
| 1 | @PACKAGE_INIT@ | 1 | @PACKAGE_INIT@ |
| 2 | 2 | ||
| 3 | set(_minizip_supported_components "") | 3 | set(_MINIZIP_supported_components "shared" "static") |
| 4 | include(CMakeFindDependencyMacro) | 4 | include(CMakeFindDependencyMacro) |
| 5 | 5 | ||
| 6 | if(@MINIZIP_BUILD_SHARED@) | ||
| 7 | list(APPEND _minizip_supported_components shared) | ||
| 8 | endif(@MINIZIP_BUILD_SHARED@) | ||
| 9 | |||
| 10 | if(@MINIZIP_BUILD_STATIC@) | ||
| 11 | list(APPEND _minizip_supported_components static) | ||
| 12 | endif(@MINIZIP_BUILD_STATIC@) | ||
| 13 | |||
| 14 | if(@MINIZIP_ENABLE_BZIP2@) | 6 | if(@MINIZIP_ENABLE_BZIP2@) |
| 15 | find_dependency(BZip2) | 7 | find_dependency(BZip2) |
| 16 | endif(@MINIZIP_ENABLE_BZIP2@) | 8 | endif(@MINIZIP_ENABLE_BZIP2@) |
| @@ -29,7 +21,7 @@ if(minizip_FIND_COMPONENTS) | |||
| 29 | else(minizip_FIND_COMPONENTS) | 21 | else(minizip_FIND_COMPONENTS) |
| 30 | find_dependency(ZLIB CONFIG) | 22 | find_dependency(ZLIB CONFIG) |
| 31 | 23 | ||
| 32 | foreach(_component_config IN LISTS _minizip_supported_components) | 24 | foreach(_component_config IN LISTS _MINIZIP_supported_components) |
| 33 | include("${CMAKE_CURRENT_LIST_DIR}/minizip-${_component_config}.cmake") | 25 | include("${CMAKE_CURRENT_LIST_DIR}/minizip-${_component_config}.cmake") |
| 34 | endforeach(_component_config IN LISTS _minizip_supported_components) | 26 | endforeach(_component_config IN LISTS _MINIZIP_supported_components) |
| 35 | endif(minizip_FIND_COMPONENTS) | 27 | endif(minizip_FIND_COMPONENTS) |
