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