2015-04-27 22:25:09 +02:00
|
|
|
CMAKE_EXPORT_NO_PACKAGE_REGISTRY
|
|
|
|
--------------------------------
|
|
|
|
|
2021-09-14 00:13:48 +02:00
|
|
|
.. versionadded:: 3.1
|
|
|
|
|
2019-11-11 23:01:05 +01:00
|
|
|
Disable the :command:`export(PACKAGE)` command when :policy:`CMP0090`
|
|
|
|
is not set to ``NEW``.
|
2015-04-27 22:25:09 +02:00
|
|
|
|
|
|
|
In some cases, for example for packaging and for system wide
|
|
|
|
installations, it is not desirable to write the user package registry.
|
2019-11-11 23:01:05 +01:00
|
|
|
If the ``CMAKE_EXPORT_NO_PACKAGE_REGISTRY`` variable is enabled,
|
2015-04-27 22:25:09 +02:00
|
|
|
the :command:`export(PACKAGE)` command will do nothing.
|
|
|
|
|
2019-11-11 23:01:05 +01:00
|
|
|
If :policy:`CMP0090` is set to ``NEW`` this variable does nothing, and the
|
|
|
|
:variable:`CMAKE_EXPORT_PACKAGE_REGISTRY` variable controls the behavior
|
|
|
|
instead.
|
|
|
|
|
2015-04-27 22:25:09 +02:00
|
|
|
See also :ref:`Disabling the Package Registry`.
|