cmake/Help/variable/PackageName_ROOT.rst

25 lines
883 B
ReStructuredText
Raw Normal View History

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
2023-05-23 16:38:00 +02:00
``<PackageName>`` is the (case-preserved) name given to the
:command:`find_package` call 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`.
2018-08-09 18:06:22 +02:00
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.
2023-07-02 19:51:09 +02:00
.. variable:: <PACKAGENAME>_ROOT
.. versionadded:: 3.27
Calls to :command:`find_package(<PackageName>)` will also search in
prefixes specified by the upper-case ``<PACKAGENAME>_ROOT`` CMake
variable. See policy :policy:`CMP0144`.