cmake: Disable use of package registries
authorJeffery To <jeffery.to@gmail.com>
Mon, 17 Aug 2020 18:10:25 +0000 (02:10 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 24 Aug 2020 16:53:59 +0000 (18:53 +0200)
commitf8b775e28767e88840b61614822d4d4278c05f74
tree3867a5449f9a3955e4452f3026f37eaab03d6ffa
parented381e2fb2bde3e45295dff46f5fd8ca2e2c51b9
cmake: Disable use of package registries

CMake provides a user package registry (stored in ~/.cmake/packages) and
a system package registry (not available on non-Windows platforms).

The "export(PACKAGE)" command may store information in the user package
registry, and the "find_package()" command may search both user and
system package registries for information.

This sets various variables to disable the use of these package
registries (both saving and retrieval of package information).

This also sets deprecated variables that perform similar functions, in
case external toolchains include older versions of CMake.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
include/cmake.mk