CMAKE_DISABLE_FIND_PACKAGE_PackageName.rst 704 B

123456789101112131415
  1. CMAKE_DISABLE_FIND_PACKAGE_<PackageName>
  2. ----------------------------------------
  3. Variable for disabling find_package() calls.
  4. Every non-REQUIRED find_package() call in a project can be disabled by
  5. setting the variable CMAKE_DISABLE_FIND_PACKAGE_<PackageName> to TRUE.
  6. This can be used to build a project without an optional package,
  7. although that package is installed.
  8. This switch should be used during the initial CMake run. Otherwise if
  9. the package has already been found in a previous CMake run, the
  10. variables which have been stored in the cache will still be there. In
  11. that case it is recommended to remove the cache variables for this
  12. package from the cache using the cache editor or cmake -U