2018-08-09 18:06:22 +02:00
|
|
|
<PackageName>_ROOT
|
|
|
|
------------------
|
|
|
|
|
2021-09-14 00:13:48 +02:00
|
|
|
.. versionadded:: 3.12
|
|
|
|
|
2018-08-09 18:06:22 +02:00
|
|
|
Calls to :command:`find_package(<PackageName>)` will search in prefixes
|
|
|
|
specified by the ``<PackageName>_ROOT`` CMake 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`` CMake variable (if set).
|
|
|
|
See policy :policy:`CMP0074`.
|
|
|
|
|
|
|
|
This variable may hold a single prefix or a
|
2019-11-11 23:01:05 +01:00
|
|
|
:ref:`semicolon-separated list <CMake Language Lists>` of multiple prefixes.
|
2018-08-09 18:06:22 +02:00
|
|
|
|
|
|
|
See also the :envvar:`<PackageName>_ROOT` environment variable.
|