2013-10-15 19:17:36 +04:00
|
|
|
CMAKE_DISABLE_FIND_PACKAGE_<PackageName>
|
|
|
|
----------------------------------------
|
|
|
|
|
2015-08-18 08:34:01 +03:00
|
|
|
Variable for disabling :command:`find_package` calls.
|
2013-10-15 19:17:36 +04:00
|
|
|
|
2015-08-18 08:34:01 +03:00
|
|
|
Every non-``REQUIRED`` :command:`find_package` call in a project can be
|
|
|
|
disabled by setting the variable
|
|
|
|
``CMAKE_DISABLE_FIND_PACKAGE_<PackageName>`` to ``TRUE``.
|
2013-10-15 19:17:36 +04:00
|
|
|
This can be used to build a project without an optional package,
|
|
|
|
although that package is installed.
|
|
|
|
|
|
|
|
This switch should be used during the initial CMake run. Otherwise if
|
|
|
|
the package has already been found in a previous CMake run, the
|
|
|
|
variables which have been stored in the cache will still be there. In
|
|
|
|
that case it is recommended to remove the cache variables for this
|
2015-08-18 08:34:01 +03:00
|
|
|
package from the cache using the cache editor or :manual:`cmake(1)` ``-U``
|