FindZLIB fails starting with CMake 3.17
Hi!
I have a project where FindZLIB used to return correct ZLIB_LIBRARY_RELEASE on 3.16.x (zlib1.dll), however starting with 3.17.x and further I'm getting:
CMake Error at C:/Program Files/CMake/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:164 (message):
Could NOT find ZLIB (missing: ZLIB_LIBRARY) (found version "1.2.7")
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:445 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files/CMake/share/cmake-3.17/Modules/FindZLIB.cmake:115 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
rts/lib/minizip/CMakeLists.txt:22 (find_package)
I'm building on Windows and use mingw environment to get executables.
How do I fix it?
P.S. The project is here: https://github.com/beyond-all-reason/spring And the libs are here: https://github.com/beyond-all-reason/mingwlibs64 (to be cloned under the root dir of the project)