You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.1 KiB
29 lines
1.1 KiB
CMP0084
|
|
-------
|
|
|
|
.. versionadded:: 3.14
|
|
|
|
The :module:`FindQt` module does not exist for :command:`find_package`.
|
|
|
|
The existence of :module:`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 :module:`FindQt` module does not
|
|
exist for :command:`find_package`. If a project really wants to use Qt 3 or 4,
|
|
it can call ``find_package(Qt[34])``, ``include(FindQt)``, or add
|
|
:module:`FindQt` to their :variable:`CMAKE_MODULE_PATH`.
|
|
|
|
The ``OLD`` behavior of this policy is for :module:`FindQt` to exist for
|
|
:command:`find_package`. The ``NEW`` behavior is to pretend that it doesn't
|
|
exist for :command:`find_package`.
|
|
|
|
This policy was introduced in CMake version 3.14. CMake version
|
|
|release| warns when the policy is not set and uses ``OLD`` behavior.
|
|
Use the :command:`cmake_policy` command to set it to ``OLD`` or ``NEW``
|
|
explicitly.
|
|
|
|
.. include:: DEPRECATED.txt
|