I need to compile a C++ project using CMake and MinGW-w64. The project depends on zlib, so CMakeLists.txt contains:
find_package(ZLIB REQUIRED)