CMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY.rst 570 B

12345678910111213
  1. CMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY
  2. ---------------------------------------------
  3. Skip :ref:`System Package Registry` in :command:`find_package` calls.
  4. In some cases, it is not desirable to use the
  5. :ref:`System Package Registry` when searching for packages. If the
  6. :variable:`CMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY` variable is
  7. enabled, all the :command:`find_package` commands will skip
  8. the :ref:`System Package Registry` as if they were called with the
  9. ``NO_CMAKE_SYSTEM_PACKAGE_REGISTRY`` argument.
  10. See also :ref:`Disabling the Package Registry`.