<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Cannot find ZLIB library after qmake2cmake conversion]]></title><description><![CDATA[<p dir="auto">I am working on a large C++ codebase that uses VS2022 and Qt 6.8.1. I am not using Qt Creator but working from the command line as I'm developing CI/CD processes. The system platform is Windows.</p>
<p dir="auto">I can build the project from the existing .pro files using Qmake. After a successful conversion from Qmake to CMake, my build is failing looking for "Qt6BundledZLIBConfig.cmake". My assumption is the CMake conversion has created a new requirement (zlib) that wasn't previously there.</p>
<p dir="auto">I have a zlib.lib and zlib.h files installed but the CMake build system seems insistent on re-building these and complains about the missing .cmake file. I have tried setting the ZLIB_LIBRARY and ZLIB_INCLUDE_DIR to point to the existing zlib files in my cmake call to no avail. I have also set my QT6_DIR to the Qt6 installation path (which was installed using <code>aqt install-qt</code>).</p>
]]></description><link>https://forum.qt.io/topic/160800/cannot-find-zlib-library-after-qmake2cmake-conversion</link><generator>RSS for Node</generator><lastBuildDate>Mon, 16 Mar 2026 14:35:20 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/160800.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 30 Jan 2025 21:36:11 GMT</pubDate><ttl>60</ttl></channel></rss>