CMP0084.rst 1.1 KB

12345678910111213141516171819202122232425262728
  1. CMP0084
  2. -------
  3. .. versionadded:: 3.14
  4. The :module:`FindQt` module does not exist for :command:`find_package`.
  5. The existence of :module:`FindQt` means that for Qt upstream to provide
  6. package config files that can be found by ``find_package(Qt)``, the consuming
  7. project has to explicitly specify ``find_package(Qt CONFIG)``. Removing this
  8. module gives Qt a path forward for exporting its own config files which can
  9. easily be found by consuming projects.
  10. This policy pretends that CMake's internal :module:`FindQt` module does not
  11. exist for :command:`find_package`. If a project really wants to use Qt 3 or 4,
  12. it can call ``find_package(Qt[34])``, ``include(FindQt)``, or add
  13. :module:`FindQt` to their :variable:`CMAKE_MODULE_PATH`.
  14. The ``OLD`` behavior of this policy is for :module:`FindQt` to exist for
  15. :command:`find_package`. The ``NEW`` behavior is to pretend that it doesn't
  16. exist for :command:`find_package`.
  17. This policy was introduced in CMake version 3.14. CMake version
  18. |release| warns when the policy is not set and uses ``OLD`` behavior.
  19. Use the :command:`cmake_policy` command to set it to ``OLD`` or ``NEW``
  20. explicitly.
  21. .. include:: DEPRECATED.txt