CMP0084.rst 1.0 KB

123456789101112131415161718192021222324252627
  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. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.14
  18. .. |WARNS_OR_DOES_NOT_WARN| replace:: warns
  19. .. include:: STANDARD_ADVICE.txt
  20. .. include:: DEPRECATED.txt