CMAKE_EXPORT_NO_PACKAGE_REGISTRYΒΆ

Disable the 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 CMAKE_EXPORT_NO_PACKAGE_REGISTRY variable is enabled, the export(PACKAGE) command will do nothing.

See also Disabling the Package Registry.