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: