CMAKE_EXPORT_PACKAGE_REGISTRY.rst 576 B

123456789101112131415
  1. CMAKE_EXPORT_PACKAGE_REGISTRY
  2. -----------------------------
  3. Enables the :command:`export(PACKAGE)` command when :policy:`CMP0090`
  4. is set to ``NEW``.
  5. The :command:`export(PACKAGE)` command does nothing by default. In some cases
  6. it is desirable to write to the user package registry, so the
  7. ``CMAKE_EXPORT_PACKAGE_REGISTRY`` variable may be set to enable it.
  8. If :policy:`CMP0090` is *not* set to ``NEW`` this variable does nothing, and
  9. the :variable:`CMAKE_EXPORT_NO_PACKAGE_REGISTRY` variable controls the behavior
  10. instead.
  11. See also :ref:`Disabling the Package Registry`.