summaryrefslogtreecommitdiffstats
path: root/Help/variable/CMAKE_EXPORT_NO_PACKAGE_REGISTRY.rst
blob: ee109ba1a8c573c7df0916143347715a078b9361 (plain)
1
2
3
4
5
6
7
8
9
10
11
CMAKE_EXPORT_NO_PACKAGE_REGISTRY
--------------------------------

Disable the :command:`export(PACKAGE)` command.

In some cases, for example for packaging and for system wide
installations, it is not desirable to write the user package registry.
If the :variable:`CMAKE_EXPORT_NO_PACKAGE_REGISTRY` variable is enabled,
the :command:`export(PACKAGE)` command will do nothing.

See also :ref:`Disabling the Package Registry`.