CMP0084.rst 1.1 KB

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