https://github.com/Kitware/CMake
Revision c404f64289bbf93bb7212df913a115e8c0c81e9d authored by Brad King on 27 October 2020, 15:24:51 UTC, committed by Brad King on 29 October 2020, 13:37:14 UTC
1 parent 2a640d4
Raw File
Tip revision: c404f64289bbf93bb7212df913a115e8c0c81e9d authored by Brad King on 27 October 2020, 15:24:51 UTC
cmCustomCommandGenerator: Collect genex target references in commands
Tip revision: c404f64
CMAKE_EXPORT_PACKAGE_REGISTRY.rst
CMAKE_EXPORT_PACKAGE_REGISTRY
-----------------------------

.. versionadded:: 3.15

Enables the :command:`export(PACKAGE)` command when :policy:`CMP0090`
is set to ``NEW``.

The :command:`export(PACKAGE)` command does nothing by default.  In some cases
it is desirable to write to the user package registry, so the
``CMAKE_EXPORT_PACKAGE_REGISTRY`` variable may be set to enable it.

If :policy:`CMP0090` is *not* set to ``NEW`` this variable does nothing, and
the :variable:`CMAKE_EXPORT_NO_PACKAGE_REGISTRY` variable controls the behavior
instead.

See also :ref:`Disabling the Package Registry`.
back to top