1 diff --git a/src/cmake/Config.cmake.in b/src/cmake/Config.cmake.in
2 index c122b013..04f36bf0 100644
3 --- a/src/cmake/Config.cmake.in
4 +++ b/src/cmake/Config.cmake.in
5 @@ -43,11 +43,7 @@ if (NOT @BUILD_SHARED_LIBS@) # NOT @BUILD_SHARED_LIBS@
6 # ZLIB_VERSION_STRING is still available for backward compatibility.
7 # See https://cmake.org/cmake/help/git-stage/module/FindZLIB.html
9 - if (@ZLIB_VERSION@) # @ZLIB_VERSION@
10 - find_dependency(ZLIB @ZLIB_VERSION@)
12 - find_dependency(ZLIB @ZLIB_VERSION_STRING@)
14 + find_dependency(ZLIB)
17 if (NOT TARGET MINIZIP::minizip-ng)