2013-10-15 19:17:36 +04:00
|
|
|
find_package
|
|
|
|
------------
|
|
|
|
|
|
|
|
Load settings for an external project.
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
find_package(<package> [version] [EXACT] [QUIET] [MODULE]
|
|
|
|
[REQUIRED] [[COMPONENTS] [components...]]
|
|
|
|
[OPTIONAL_COMPONENTS components...]
|
|
|
|
[NO_POLICY_SCOPE])
|
|
|
|
|
2014-02-18 00:36:03 +04:00
|
|
|
Finds and loads settings from an external project. ``<package>_FOUND``
|
2013-10-15 19:17:36 +04:00
|
|
|
will be set to indicate whether the package was found. When the
|
|
|
|
package is found package-specific information is provided through
|
2014-02-18 00:36:03 +04:00
|
|
|
variables and :ref:`Imported Targets` documented by the package itself. The
|
|
|
|
``QUIET`` option disables messages if the package cannot be found. The
|
|
|
|
``MODULE`` option disables the second signature documented below. The
|
|
|
|
``REQUIRED`` option stops processing with an error message if the package
|
2013-10-15 19:17:36 +04:00
|
|
|
cannot be found.
|
|
|
|
|
|
|
|
A package-specific list of required components may be listed after the
|
2014-02-18 00:36:03 +04:00
|
|
|
``COMPONENTS`` option (or after the ``REQUIRED`` option if present).
|
2013-10-15 19:17:36 +04:00
|
|
|
Additional optional components may be listed after
|
2014-02-18 00:36:03 +04:00
|
|
|
``OPTIONAL_COMPONENTS``. Available components and their influence on
|
2013-10-15 19:17:36 +04:00
|
|
|
whether a package is considered to be found are defined by the target
|
|
|
|
package.
|
|
|
|
|
2014-02-18 00:36:03 +04:00
|
|
|
The ``[version]`` argument requests a version with which the package found
|
|
|
|
should be compatible (format is ``major[.minor[.patch[.tweak]]]``). The
|
|
|
|
``EXACT`` option requests that the version be matched exactly. If no
|
|
|
|
``[version]`` and/or component list is given to a recursive invocation
|
2013-10-15 19:17:36 +04:00
|
|
|
inside a find-module, the corresponding arguments are forwarded
|
2014-02-18 00:36:03 +04:00
|
|
|
automatically from the outer call (including the ``EXACT`` flag for
|
|
|
|
``[version]``). Version support is currently provided only on a
|
2013-10-15 19:17:36 +04:00
|
|
|
package-by-package basis (details below).
|
|
|
|
|
|
|
|
User code should generally look for packages using the above simple
|
|
|
|
signature. The remainder of this command documentation specifies the
|
|
|
|
full command signature and details of the search process. Project
|
|
|
|
maintainers wishing to provide a package to be found by this command
|
|
|
|
are encouraged to read on.
|
|
|
|
|
|
|
|
The command has two modes by which it searches for packages: "Module"
|
|
|
|
mode and "Config" mode. Module mode is available when the command is
|
|
|
|
invoked with the above reduced signature. CMake searches for a file
|
2014-02-18 00:36:03 +04:00
|
|
|
called ``Find<package>.cmake`` in the :variable:`CMAKE_MODULE_PATH`
|
|
|
|
followed by the CMake installation. If the file is found, it is read
|
|
|
|
and processed by CMake. It is responsible for finding the package,
|
|
|
|
checking the version, and producing any needed messages. Many
|
|
|
|
find-modules provide limited or no support for versioning; check
|
|
|
|
the module documentation. If no module is found and the ``MODULE``
|
|
|
|
option is not given the command proceeds to Config mode.
|
2013-10-15 19:17:36 +04:00
|
|
|
|
2014-02-18 00:36:03 +04:00
|
|
|
The complete Config mode command signature is::
|
2013-10-15 19:17:36 +04:00
|
|
|
|
|
|
|
find_package(<package> [version] [EXACT] [QUIET]
|
|
|
|
[REQUIRED] [[COMPONENTS] [components...]]
|
|
|
|
[CONFIG|NO_MODULE]
|
|
|
|
[NO_POLICY_SCOPE]
|
|
|
|
[NAMES name1 [name2 ...]]
|
|
|
|
[CONFIGS config1 [config2 ...]]
|
|
|
|
[HINTS path1 [path2 ... ]]
|
|
|
|
[PATHS path1 [path2 ... ]]
|
|
|
|
[PATH_SUFFIXES suffix1 [suffix2 ...]]
|
|
|
|
[NO_DEFAULT_PATH]
|
|
|
|
[NO_CMAKE_ENVIRONMENT_PATH]
|
|
|
|
[NO_CMAKE_PATH]
|
|
|
|
[NO_SYSTEM_ENVIRONMENT_PATH]
|
|
|
|
[NO_CMAKE_PACKAGE_REGISTRY]
|
2015-05-07 23:21:29 +03:00
|
|
|
[NO_CMAKE_BUILDS_PATH] # Deprecated; does nothing.
|
2013-10-15 19:17:36 +04:00
|
|
|
[NO_CMAKE_SYSTEM_PATH]
|
|
|
|
[NO_CMAKE_SYSTEM_PACKAGE_REGISTRY]
|
|
|
|
[CMAKE_FIND_ROOT_PATH_BOTH |
|
|
|
|
ONLY_CMAKE_FIND_ROOT_PATH |
|
|
|
|
NO_CMAKE_FIND_ROOT_PATH])
|
|
|
|
|
2014-02-18 00:36:03 +04:00
|
|
|
The ``CONFIG`` option may be used to skip Module mode explicitly and
|
|
|
|
switch to Config mode. It is synonymous to using ``NO_MODULE``. Config
|
2013-10-15 19:17:36 +04:00
|
|
|
mode is also implied by use of options not specified in the reduced
|
|
|
|
signature.
|
|
|
|
|
|
|
|
Config mode attempts to locate a configuration file provided by the
|
2014-02-18 00:36:03 +04:00
|
|
|
package to be found. A cache entry called ``<package>_DIR`` is created to
|
2013-10-15 19:17:36 +04:00
|
|
|
hold the directory containing the file. By default the command
|
2014-02-18 00:36:03 +04:00
|
|
|
searches for a package with the name ``<package>``. If the ``NAMES`` option
|
|
|
|
is given the names following it are used instead of ``<package>``. The
|
|
|
|
command searches for a file called ``<name>Config.cmake`` or
|
|
|
|
``<lower-case-name>-config.cmake`` for each name specified. A
|
2013-10-15 19:17:36 +04:00
|
|
|
replacement set of possible configuration file names may be given
|
2014-02-18 00:36:03 +04:00
|
|
|
using the ``CONFIGS`` option. The search procedure is specified below.
|
2013-10-15 19:17:36 +04:00
|
|
|
Once found, the configuration file is read and processed by CMake.
|
|
|
|
Since the file is provided by the package it already knows the
|
|
|
|
location of package contents. The full path to the configuration file
|
2014-02-18 00:36:03 +04:00
|
|
|
is stored in the cmake variable ``<package>_CONFIG``.
|
2013-10-15 19:17:36 +04:00
|
|
|
|
|
|
|
All configuration files which have been considered by CMake while
|
|
|
|
searching for an installation of the package with an appropriate
|
2014-02-18 00:36:03 +04:00
|
|
|
version are stored in the cmake variable ``<package>_CONSIDERED_CONFIGS``,
|
|
|
|
the associated versions in ``<package>_CONSIDERED_VERSIONS``.
|
2013-10-15 19:17:36 +04:00
|
|
|
|
|
|
|
If the package configuration file cannot be found CMake will generate
|
2014-02-18 00:36:03 +04:00
|
|
|
an error describing the problem unless the ``QUIET`` argument is
|
|
|
|
specified. If ``REQUIRED`` is specified and the package is not found a
|
2013-10-15 19:17:36 +04:00
|
|
|
fatal error is generated and the configure step stops executing. If
|
2014-02-18 00:36:03 +04:00
|
|
|
``<package>_DIR`` has been set to a directory not containing a
|
2013-10-15 19:17:36 +04:00
|
|
|
configuration file CMake will ignore it and search from scratch.
|
|
|
|
|
2014-02-18 00:36:03 +04:00
|
|
|
When the ``[version]`` argument is given Config mode will only find a
|
2013-10-15 19:17:36 +04:00
|
|
|
version of the package that claims compatibility with the requested
|
2014-02-18 00:36:03 +04:00
|
|
|
version (format is ``major[.minor[.patch[.tweak]]]``). If the ``EXACT``
|
2013-10-15 19:17:36 +04:00
|
|
|
option is given only a version of the package claiming an exact match
|
|
|
|
of the requested version may be found. CMake does not establish any
|
|
|
|
convention for the meaning of version numbers. Package version
|
|
|
|
numbers are checked by "version" files provided by the packages
|
|
|
|
themselves. For a candidate package configuration file
|
2014-02-18 00:36:03 +04:00
|
|
|
``<config-file>.cmake`` the corresponding version file is located next
|
|
|
|
to it and named either ``<config-file>-version.cmake`` or
|
|
|
|
``<config-file>Version.cmake``. If no such version file is available
|
2013-10-15 19:17:36 +04:00
|
|
|
then the configuration file is assumed to not be compatible with any
|
|
|
|
requested version. A basic version file containing generic version
|
2014-02-18 00:36:03 +04:00
|
|
|
matching code can be created using the
|
|
|
|
:module:`CMakePackageConfigHelpers` module. When a version file
|
|
|
|
is found it is loaded to check the requested version number. The
|
|
|
|
version file is loaded in a nested scope in which the following
|
|
|
|
variables have been defined:
|
|
|
|
|
|
|
|
``PACKAGE_FIND_NAME``
|
|
|
|
the ``<package>`` name
|
|
|
|
``PACKAGE_FIND_VERSION``
|
|
|
|
full requested version string
|
|
|
|
``PACKAGE_FIND_VERSION_MAJOR``
|
|
|
|
major version if requested, else 0
|
|
|
|
``PACKAGE_FIND_VERSION_MINOR``
|
|
|
|
minor version if requested, else 0
|
|
|
|
``PACKAGE_FIND_VERSION_PATCH``
|
|
|
|
patch version if requested, else 0
|
|
|
|
``PACKAGE_FIND_VERSION_TWEAK``
|
|
|
|
tweak version if requested, else 0
|
|
|
|
``PACKAGE_FIND_VERSION_COUNT``
|
|
|
|
number of version components, 0 to 4
|
2013-10-15 19:17:36 +04:00
|
|
|
|
|
|
|
The version file checks whether it satisfies the requested version and
|
|
|
|
sets these variables:
|
|
|
|
|
2014-02-18 00:36:03 +04:00
|
|
|
``PACKAGE_VERSION``
|
|
|
|
full provided version string
|
|
|
|
``PACKAGE_VERSION_EXACT``
|
|
|
|
true if version is exact match
|
|
|
|
``PACKAGE_VERSION_COMPATIBLE``
|
|
|
|
true if version is compatible
|
|
|
|
``PACKAGE_VERSION_UNSUITABLE``
|
|
|
|
true if unsuitable as any version
|
2013-10-15 19:17:36 +04:00
|
|
|
|
2014-02-18 00:36:03 +04:00
|
|
|
These variables are checked by the ``find_package`` command to determine
|
2013-10-15 19:17:36 +04:00
|
|
|
whether the configuration file provides an acceptable version. They
|
|
|
|
are not available after the find_package call returns. If the version
|
|
|
|
is acceptable the following variables are set:
|
|
|
|
|
2014-02-18 00:36:03 +04:00
|
|
|
``<package>_VERSION``
|
|
|
|
full provided version string
|
|
|
|
``<package>_VERSION_MAJOR``
|
|
|
|
major version if provided, else 0
|
|
|
|
``<package>_VERSION_MINOR``
|
|
|
|
minor version if provided, else 0
|
|
|
|
``<package>_VERSION_PATCH``
|
|
|
|
patch version if provided, else 0
|
|
|
|
``<package>_VERSION_TWEAK``
|
|
|
|
tweak version if provided, else 0
|
|
|
|
``<package>_VERSION_COUNT``
|
|
|
|
number of version components, 0 to 4
|
2013-10-15 19:17:36 +04:00
|
|
|
|
|
|
|
and the corresponding package configuration file is loaded. When
|
|
|
|
multiple package configuration files are available whose version files
|
|
|
|
claim compatibility with the version requested it is unspecified which
|
|
|
|
one is chosen. No attempt is made to choose a highest or closest
|
|
|
|
version number.
|
|
|
|
|
|
|
|
Config mode provides an elaborate interface and search procedure.
|
|
|
|
Much of the interface is provided for completeness and for use
|
|
|
|
internally by find-modules loaded by Module mode. Most user code
|
2014-02-18 00:36:03 +04:00
|
|
|
should simply call::
|
2013-10-15 19:17:36 +04:00
|
|
|
|
|
|
|
find_package(<package> [major[.minor]] [EXACT] [REQUIRED|QUIET])
|
|
|
|
|
|
|
|
in order to find a package. Package maintainers providing CMake
|
|
|
|
package configuration files are encouraged to name and install them
|
|
|
|
such that the procedure outlined below will find them without
|
|
|
|
requiring use of additional options.
|
|
|
|
|
|
|
|
CMake constructs a set of possible installation prefixes for the
|
|
|
|
package. Under each prefix several directories are searched for a
|
|
|
|
configuration file. The tables below show the directories searched.
|
|
|
|
Each entry is meant for installation trees following Windows (W), UNIX
|
2014-02-18 00:36:03 +04:00
|
|
|
(U), or Apple (A) conventions::
|
2013-10-15 19:17:36 +04:00
|
|
|
|
|
|
|
<prefix>/ (W)
|
|
|
|
<prefix>/(cmake|CMake)/ (W)
|
|
|
|
<prefix>/<name>*/ (W)
|
|
|
|
<prefix>/<name>*/(cmake|CMake)/ (W)
|
|
|
|
<prefix>/(lib/<arch>|lib|share)/cmake/<name>*/ (U)
|
|
|
|
<prefix>/(lib/<arch>|lib|share)/<name>*/ (U)
|
|
|
|
<prefix>/(lib/<arch>|lib|share)/<name>*/(cmake|CMake)/ (U)
|
|
|
|
|
|
|
|
On systems supporting OS X Frameworks and Application Bundles the
|
|
|
|
following directories are searched for frameworks or bundles
|
2014-02-18 00:36:03 +04:00
|
|
|
containing a configuration file::
|
2013-10-15 19:17:36 +04:00
|
|
|
|
|
|
|
<prefix>/<name>.framework/Resources/ (A)
|
|
|
|
<prefix>/<name>.framework/Resources/CMake/ (A)
|
|
|
|
<prefix>/<name>.framework/Versions/*/Resources/ (A)
|
|
|
|
<prefix>/<name>.framework/Versions/*/Resources/CMake/ (A)
|
|
|
|
<prefix>/<name>.app/Contents/Resources/ (A)
|
|
|
|
<prefix>/<name>.app/Contents/Resources/CMake/ (A)
|
|
|
|
|
2014-02-18 00:36:03 +04:00
|
|
|
In all cases the ``<name>`` is treated as case-insensitive and corresponds
|
|
|
|
to any of the names specified (``<package>`` or names given by ``NAMES``).
|
|
|
|
Paths with ``lib/<arch>`` are enabled if the
|
|
|
|
:variable:`CMAKE_LIBRARY_ARCHITECTURE` variable is set. If ``PATH_SUFFIXES``
|
|
|
|
is specified the suffixes are appended to each (W) or (U) directory entry
|
|
|
|
one-by-one.
|
2013-10-15 19:17:36 +04:00
|
|
|
|
|
|
|
This set of directories is intended to work in cooperation with
|
|
|
|
projects that provide configuration files in their installation trees.
|
|
|
|
Directories above marked with (W) are intended for installations on
|
|
|
|
Windows where the prefix may point at the top of an application's
|
|
|
|
installation directory. Those marked with (U) are intended for
|
|
|
|
installations on UNIX platforms where the prefix is shared by multiple
|
|
|
|
packages. This is merely a convention, so all (W) and (U) directories
|
|
|
|
are still searched on all platforms. Directories marked with (A) are
|
|
|
|
intended for installations on Apple platforms. The cmake variables
|
2014-02-18 00:36:03 +04:00
|
|
|
``CMAKE_FIND_FRAMEWORK`` and ``CMAKE_FIND_APPBUNDLE``
|
|
|
|
determine the order of preference as specified below.
|
2013-10-15 19:17:36 +04:00
|
|
|
|
|
|
|
The set of installation prefixes is constructed using the following
|
2014-02-18 00:36:03 +04:00
|
|
|
steps. If ``NO_DEFAULT_PATH`` is specified all ``NO_*`` options are
|
|
|
|
enabled.
|
2013-10-15 19:17:36 +04:00
|
|
|
|
2014-02-18 00:36:03 +04:00
|
|
|
1. Search paths specified in cmake-specific cache variables. These
|
|
|
|
are intended to be used on the command line with a ``-DVAR=value``.
|
|
|
|
This can be skipped if ``NO_CMAKE_PATH`` is passed::
|
2013-10-15 19:17:36 +04:00
|
|
|
|
2014-02-18 00:36:03 +04:00
|
|
|
CMAKE_PREFIX_PATH
|
|
|
|
CMAKE_FRAMEWORK_PATH
|
|
|
|
CMAKE_APPBUNDLE_PATH
|
2013-10-15 19:17:36 +04:00
|
|
|
|
2014-02-18 00:36:03 +04:00
|
|
|
2. Search paths specified in cmake-specific environment variables.
|
|
|
|
These are intended to be set in the user's shell configuration.
|
|
|
|
This can be skipped if ``NO_CMAKE_ENVIRONMENT_PATH`` is passed::
|
2013-10-15 19:17:36 +04:00
|
|
|
|
2014-02-18 00:36:03 +04:00
|
|
|
<package>_DIR
|
|
|
|
CMAKE_PREFIX_PATH
|
|
|
|
CMAKE_FRAMEWORK_PATH
|
|
|
|
CMAKE_APPBUNDLE_PATH
|
2013-10-15 19:17:36 +04:00
|
|
|
|
2014-02-18 00:36:03 +04:00
|
|
|
3. Search paths specified by the ``HINTS`` option. These should be paths
|
|
|
|
computed by system introspection, such as a hint provided by the
|
|
|
|
location of another item already found. Hard-coded guesses should
|
|
|
|
be specified with the ``PATHS`` option.
|
2013-10-15 19:17:36 +04:00
|
|
|
|
2014-02-18 00:36:03 +04:00
|
|
|
4. Search the standard system environment variables. This can be
|
|
|
|
skipped if ``NO_SYSTEM_ENVIRONMENT_PATH`` is passed. Path entries
|
|
|
|
ending in ``/bin`` or ``/sbin`` are automatically converted to their
|
|
|
|
parent directories::
|
2013-10-15 19:17:36 +04:00
|
|
|
|
2014-02-18 00:36:03 +04:00
|
|
|
PATH
|
2013-10-15 19:17:36 +04:00
|
|
|
|
2015-05-07 23:21:29 +03:00
|
|
|
5. Search paths stored in the CMake :ref:`User Package Registry`.
|
2014-04-02 18:32:54 +04:00
|
|
|
This can be skipped if ``NO_CMAKE_PACKAGE_REGISTRY`` is passed or by
|
|
|
|
setting the :variable:`CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY`
|
|
|
|
to ``TRUE``.
|
2014-02-18 00:36:03 +04:00
|
|
|
See the :manual:`cmake-packages(7)` manual for details on the user
|
|
|
|
package registry.
|
2013-10-15 19:17:36 +04:00
|
|
|
|
2015-05-07 23:21:29 +03:00
|
|
|
6. Search cmake variables defined in the Platform files for the
|
2014-02-18 00:36:03 +04:00
|
|
|
current system. This can be skipped if ``NO_CMAKE_SYSTEM_PATH`` is
|
|
|
|
passed::
|
2013-10-15 19:17:36 +04:00
|
|
|
|
2014-02-18 00:36:03 +04:00
|
|
|
CMAKE_SYSTEM_PREFIX_PATH
|
|
|
|
CMAKE_SYSTEM_FRAMEWORK_PATH
|
|
|
|
CMAKE_SYSTEM_APPBUNDLE_PATH
|
2013-10-15 19:17:36 +04:00
|
|
|
|
2015-05-07 23:21:29 +03:00
|
|
|
7. Search paths stored in the CMake :ref:`System Package Registry`.
|
2014-04-02 18:32:54 +04:00
|
|
|
This can be skipped if ``NO_CMAKE_SYSTEM_PACKAGE_REGISTRY`` is passed
|
|
|
|
or by setting the
|
|
|
|
:variable:`CMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY` to ``TRUE``.
|
2014-02-18 00:36:03 +04:00
|
|
|
See the :manual:`cmake-packages(7)` manual for details on the system
|
|
|
|
package registry.
|
2013-10-15 19:17:36 +04:00
|
|
|
|
2015-05-07 23:21:29 +03:00
|
|
|
8. Search paths specified by the ``PATHS`` option. These are typically
|
2014-02-18 00:36:03 +04:00
|
|
|
hard-coded guesses.
|
2013-10-15 19:17:36 +04:00
|
|
|
|
2013-10-01 20:37:02 +04:00
|
|
|
.. |FIND_XXX| replace:: find_package
|
|
|
|
.. |FIND_ARGS_XXX| replace:: <package>
|
|
|
|
.. |CMAKE_FIND_ROOT_PATH_MODE_XXX| replace::
|
2013-11-26 22:58:07 +04:00
|
|
|
:variable:`CMAKE_FIND_ROOT_PATH_MODE_PACKAGE`
|
2013-10-01 20:37:02 +04:00
|
|
|
|
|
|
|
.. include:: FIND_XXX_MAC.txt
|
|
|
|
.. include:: FIND_XXX_ROOT.txt
|
|
|
|
.. include:: FIND_XXX_ORDER.txt
|
2013-10-15 19:17:36 +04:00
|
|
|
|
2014-02-18 00:36:03 +04:00
|
|
|
Every non-REQUIRED ``find_package`` call can be disabled by setting the
|
|
|
|
:variable:`CMAKE_DISABLE_FIND_PACKAGE_<PackageName>` variable to ``TRUE``.
|
2013-10-15 19:17:36 +04:00
|
|
|
|
2014-02-18 00:36:03 +04:00
|
|
|
When loading a find module or package configuration file ``find_package``
|
2013-10-15 19:17:36 +04:00
|
|
|
defines variables to provide information about the call arguments (and
|
|
|
|
restores their original state before returning):
|
|
|
|
|
2015-01-10 22:41:52 +03:00
|
|
|
``CMAKE_FIND_PACKAGE_NAME``
|
|
|
|
the ``<package>`` name which is searched for
|
2014-02-18 00:36:03 +04:00
|
|
|
``<package>_FIND_REQUIRED``
|
|
|
|
true if ``REQUIRED`` option was given
|
|
|
|
``<package>_FIND_QUIETLY``
|
|
|
|
true if ``QUIET`` option was given
|
|
|
|
``<package>_FIND_VERSION``
|
|
|
|
full requested version string
|
|
|
|
``<package>_FIND_VERSION_MAJOR``
|
|
|
|
major version if requested, else 0
|
|
|
|
``<package>_FIND_VERSION_MINOR``
|
|
|
|
minor version if requested, else 0
|
|
|
|
``<package>_FIND_VERSION_PATCH``
|
|
|
|
patch version if requested, else 0
|
|
|
|
``<package>_FIND_VERSION_TWEAK``
|
|
|
|
tweak version if requested, else 0
|
|
|
|
``<package>_FIND_VERSION_COUNT``
|
|
|
|
number of version components, 0 to 4
|
|
|
|
``<package>_FIND_VERSION_EXACT``
|
|
|
|
true if ``EXACT`` option was given
|
|
|
|
``<package>_FIND_COMPONENTS``
|
|
|
|
list of requested components
|
|
|
|
``<package>_FIND_REQUIRED_<c>``
|
|
|
|
true if component ``<c>`` is required,
|
|
|
|
false if component ``<c>`` is optional
|
2013-10-15 19:17:36 +04:00
|
|
|
|
|
|
|
In Module mode the loaded find module is responsible to honor the
|
|
|
|
request detailed by these variables; see the find module for details.
|
2014-02-18 00:36:03 +04:00
|
|
|
In Config mode ``find_package`` handles ``REQUIRED``, ``QUIET``, and
|
|
|
|
``[version]`` options automatically but leaves it to the package
|
|
|
|
configuration file to handle components in a way that makes sense
|
|
|
|
for the package. The package configuration file may set
|
|
|
|
``<package>_FOUND`` to false to tell ``find_package`` that component
|
|
|
|
requirements are not satisfied.
|
|
|
|
|
|
|
|
See the :command:`cmake_policy` command documentation for discussion
|
|
|
|
of the ``NO_POLICY_SCOPE`` option.
|