CMP0144.rst 1.0 KB

12345678910111213141516171819202122232425
  1. CMP0144
  2. -------
  3. .. versionadded:: 3.27
  4. :command:`find_package` uses upper-case ``<PACKAGENAME>_ROOT`` variables.
  5. In CMake 3.27 and above the :command:`find_package(<PackageName>)` command now
  6. searches prefixes specified by the upper-case :variable:`<PACKAGENAME>_ROOT`
  7. CMake variable and the :envvar:`<PACKAGENAME>_ROOT` environment variable
  8. in addition to the case-preserved :variable:`<PackageName>_ROOT` and
  9. :envvar:`<PackageName>_ROOT` variables used since policy :policy:`CMP0074`.
  10. This policy provides compatibility with projects that have not been
  11. updated to avoid using ``<PACKAGENAME>_ROOT`` variables for other purposes.
  12. The ``OLD`` behavior for this policy is to ignore ``<PACKAGENAME>_ROOT``
  13. variables if the original ``<PackageName>`` has lower-case characters.
  14. The ``NEW`` behavior for this policy is to use ``<PACKAGENAME>_ROOT``
  15. variables.
  16. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.27
  17. .. |WARNS_OR_DOES_NOT_WARN| replace:: warns
  18. .. include:: include/STANDARD_ADVICE.rst
  19. .. include:: include/DEPRECATED.rst