PackageName_ROOT.rst 624 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 name given to the :command:`find_package` call
  7. and ``_ROOT`` is literal. For example, ``find_package(Foo)`` will search
  8. prefixes specified in the ``Foo_ROOT`` CMake variable (if set).
  9. 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.