New in version 3.14.
The existence of
FindQt means that for Qt upstream to provide package config files that can be found by
find_package(Qt), the consuming project has to explicitly specify
find_package(Qt CONFIG). Removing this module gives Qt a path forward for exporting its own config files which can easily be found by consuming projects.
This policy pretends that CMake’s internal
FindQt module does not exist for
find_package(). If a project really wants to use Qt 3 or 4, it can call
include(FindQt), or add
FindQt to their
This policy was introduced in CMake version 3.14. CMake version 3.19.0-rc3 warns when the policy is not set and uses
OLD behavior. Use the
cmake_policy() command to set it to
OLD behavior of a policy is
deprecated by definition and may be removed in a future version of CMake.
© 2000–2020 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.