1. 15 Mar, 2019 1 commit
    • Robert Maynard's avatar
      export: Disable PACKAGE mode user package registry by default · 9bede5c4
      Robert Maynard authored
      The user package registry populated by the `export()` command causes
      side effects outside the build and source directories.  Such effects
      should be opt-in rather than op-out.  Introduce a policy to change
      default behavior of `export(PACKAGE)` to do nothing.
  2. 12 May, 2014 1 commit
    • Daniele E. Domenichelli's avatar
      Allow the Package Registry to be disabled (#14849) · be8ae960
      Daniele E. Domenichelli authored
      When a project is packaged for redistribution the local package
      registries should not be updated or consulted.  They are for developers.
      Add variables to disable use of package registries globally:
      * CMAKE_EXPORT_NO_PACKAGE_REGISTRY that disables the export(PACKAGE)
      * CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY that disables the User Package
        Registry in all the find_package calls.
        System Package Registry in all the find_package calls.
      Update documentation and unit tests.