summaryrefslogtreecommitdiffstats
path: root/Help/policy
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2018-10-31 17:26:04 (GMT)
committerBrad King <brad.king@kitware.com>2018-11-14 20:05:06 (GMT)
commit0f5c1b404b0f9cbe652cf306e9dca0c25c70876f (patch)
tree3040a94e2f7f8f9e0de4a8bd13debbe665ea997a /Help/policy
parentddb967cca1a37501dcf3fbd6f64c2d3be1c0c82b (diff)
downloadCMake-0f5c1b404b0f9cbe652cf306e9dca0c25c70876f.zip
CMake-0f5c1b404b0f9cbe652cf306e9dca0c25c70876f.tar.gz
CMake-0f5c1b404b0f9cbe652cf306e9dca0c25c70876f.tar.bz2
find_package(): Add policy to remove the FindQt module
Removing FindQt.cmake gives Qt upstream a path forward to export its own QtConfig.cmake files which can be found by find_package() without having to explicitly specify CONFIG. Projects that still want to use Qt3/4 can call find_package(Qt[34]), include(FindQt), or add FindQt.cmake to their CMAKE_MODULE_PATH.
Diffstat (limited to 'Help/policy')
-rw-r--r--Help/policy/CMP0084.rst26
1 files changed, 26 insertions, 0 deletions
diff --git a/Help/policy/CMP0084.rst b/Help/policy/CMP0084.rst
new file mode 100644
index 0000000..713d295
--- /dev/null
+++ b/Help/policy/CMP0084.rst
@@ -0,0 +1,26 @@
+CMP0084
+-------
+
+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