PackageName_ROOT.rst 641 B

12345678910111213141516
  1. <PackageName>_ROOT
  2. ------------------
  3. .. versionadded:: 3.12
  4. Calls to :command:`find_package(<PackageName>)` will search in prefixes
  5. specified by the ``<PackageName>_ROOT`` CMake variable, where
  6. ``<PackageName>`` is the (case-preserved) name given to the
  7. :command:`find_package` call and ``_ROOT`` is literal.
  8. For example, ``find_package(Foo)`` will search prefixes specified in the
  9. ``Foo_ROOT`` CMake variable (if set). See policy :policy:`CMP0074`.
  10. This variable may hold a single prefix or a
  11. :ref:`semicolon-separated list <CMake Language Lists>` of multiple prefixes.
  12. See also the :envvar:`<PackageName>_ROOT` environment variable.