diff options
| author | Vollstrecker <werner@vollstreckernet.de> | 2025-12-24 14:16:44 +0100 |
|---|---|---|
| committer | Mark Adler <git@madler.net> | 2026-01-31 20:10:58 -0800 |
| commit | 88c13334882d3a3007ff5f5e708e216bc9c4b155 (patch) | |
| tree | 711b4d33ae3a06765ee0a5350cbef24601ddc344 | |
| parent | 9eadab425834142aed28c51129681ed31a09577d (diff) | |
| download | zlib-88c13334882d3a3007ff5f5e708e216bc9c4b155.tar.gz zlib-88c13334882d3a3007ff5f5e708e216bc9c4b155.tar.bz2 zlib-88c13334882d3a3007ff5f5e708e216bc9c4b155.zip | |
CMake: Use a normal components search for zlib.
| -rw-r--r-- | zlibConfig.cmake.in | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/zlibConfig.cmake.in b/zlibConfig.cmake.in index 713cac45..8252ab34 100644 --- a/zlibConfig.cmake.in +++ b/zlibConfig.cmake.in | |||
| @@ -1,14 +1,6 @@ | |||
| 1 | @PACKAGE_INIT@ | 1 | @PACKAGE_INIT@ |
| 2 | 2 | ||
| 3 | set(_ZLIB_supported_components "") | 3 | set(_ZLIB_supported_components "shared" "static") |
| 4 | |||
| 5 | if(@ZLIB_BUILD_SHARED@) | ||
| 6 | list(APPEND _ZLIB_supported_components shared) | ||
| 7 | endif(@ZLIB_BUILD_SHARED@) | ||
| 8 | |||
| 9 | if(@ZLIB_BUILD_STATIC@) | ||
| 10 | list(APPEND _ZLIB_supported_components static) | ||
| 11 | endif(@ZLIB_BUILD_STATIC@) | ||
| 12 | 4 | ||
| 13 | if(ZLIB_FIND_COMPONENTS) | 5 | if(ZLIB_FIND_COMPONENTS) |
| 14 | foreach(_comp ${ZLIB_FIND_COMPONENTS}) | 6 | foreach(_comp ${ZLIB_FIND_COMPONENTS}) |
