CMAKE_EXPORT_NO_PACKAGE_REGISTRY.rst 426 B

1234567891011
  1. CMAKE_EXPORT_NO_PACKAGE_REGISTRY
  2. --------------------------------
  3. Disable the :command:`export(PACKAGE)` command.
  4. In some cases, for example for packaging and for system wide
  5. installations, it is not desirable to write the user package registry.
  6. If the :variable:`CMAKE_EXPORT_NO_PACKAGE_REGISTRY` variable is enabled,
  7. the :command:`export(PACKAGE)` command will do nothing.
  8. See also :ref:`Disabling the Package Registry`.