cmake/Help/envvar/PackageName_ROOT.rst

18 lines
700 B
ReStructuredText
Raw Normal View History

2018-08-09 18:06:22 +02:00
<PackageName>_ROOT
------------------
2019-11-11 23:01:05 +01:00
.. include:: ENV_VAR.txt
2018-08-09 18:06:22 +02:00
Calls to :command:`find_package(<PackageName>)` will search in prefixes
specified by the ``<PackageName>_ROOT`` environment variable, where
2019-11-11 23:01:05 +01:00
``<PackageName>`` is the name given to the :command:`find_package` call
2018-08-09 18:06:22 +02:00
and ``_ROOT`` is literal. For example, ``find_package(Foo)`` will search
prefixes specified in the ``Foo_ROOT`` environment variable (if set).
See policy :policy:`CMP0074`.
This variable may hold a single prefix or a list of prefixes separated
by ``:`` on UNIX or ``;`` on Windows (the same as the ``PATH`` environment
variable convention on those platforms).
See also the :variable:`<PackageName>_ROOT` CMake variable.