PackageName_ROOT.rst 667 B

123456789101112131415
  1. <PackageName>_ROOT
  2. ------------------
  3. Calls to :command:`find_package(<PackageName>)` will search in prefixes
  4. specified by the ``<PackageName>_ROOT`` environment variable, where
  5. ``<PackageName>`` is the name given to the ``find_package`` call
  6. and ``_ROOT`` is literal. For example, ``find_package(Foo)`` will search
  7. prefixes specified in the ``Foo_ROOT`` environment variable (if set).
  8. See policy :policy:`CMP0074`.
  9. This variable may hold a single prefix or a list of prefixes separated
  10. by ``:`` on UNIX or ``;`` on Windows (the same as the ``PATH`` environment
  11. variable convention on those platforms).
  12. See also the :variable:`<PackageName>_ROOT` CMake variable.