Imported Upstream version 3.12.1
[platform/upstream/cmake.git] / Help / variable / PackageName_ROOT.rst
1 <PackageName>_ROOT
2 ------------------
3
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 ``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
11 This variable may hold a single prefix or a
12 :ref:`;-list <CMake Language Lists>` of multiple prefixes.
13
14 See also the :envvar:`<PackageName>_ROOT` environment variable.