CMAKE_EXPORT_NO_PACKAGE_REGISTRY.rst 621 B

12345678910111213141516
  1. CMAKE_EXPORT_NO_PACKAGE_REGISTRY
  2. --------------------------------
  3. Disable the :command:`export(PACKAGE)` command when :policy:`CMP0090`
  4. is not set to ``NEW``.
  5. In some cases, for example for packaging and for system wide
  6. installations, it is not desirable to write the user package registry.
  7. If the ``CMAKE_EXPORT_NO_PACKAGE_REGISTRY`` variable is enabled,
  8. the :command:`export(PACKAGE)` command will do nothing.
  9. If :policy:`CMP0090` is set to ``NEW`` this variable does nothing, and the
  10. :variable:`CMAKE_EXPORT_PACKAGE_REGISTRY` variable controls the behavior
  11. instead.
  12. See also :ref:`Disabling the Package Registry`.