From 88c13334882d3a3007ff5f5e708e216bc9c4b155 Mon Sep 17 00:00:00 2001 From: Vollstrecker Date: Wed, 24 Dec 2025 14:16:44 +0100 Subject: CMake: Use a normal components search for zlib. --- zlibConfig.cmake.in | 10 +--------- 1 file changed, 1 insertion(+), 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 @@ @PACKAGE_INIT@ -set(_ZLIB_supported_components "") - -if(@ZLIB_BUILD_SHARED@) - list(APPEND _ZLIB_supported_components shared) -endif(@ZLIB_BUILD_SHARED@) - -if(@ZLIB_BUILD_STATIC@) - list(APPEND _ZLIB_supported_components static) -endif(@ZLIB_BUILD_STATIC@) +set(_ZLIB_supported_components "shared" "static") if(ZLIB_FIND_COMPONENTS) foreach(_comp ${ZLIB_FIND_COMPONENTS}) -- cgit v1.2.3-55-g6feb