Supported CMake versions

cmake_minimum_required() specifies the minimum CMake version that is required to successfully configure a project. It also updates the CMake Policy Settings of the project, which control various aspects of CMake's backwards compatibility behavior.

Qt projects are required to set version 3.16 or newer in the cmake_minimum_required command to ensure a working set of policy behaviors.

The actual version of CMake that should be used to configure the project also depends on the target platform. For most target platforms, it is 3.16.

When targeting the following platforms, you need to use CMake version 3.21.1 or newer:

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.