diff options
author | Konrad Weihmann <kweihmann@outlook.com> | 2021-02-18 20:29:59 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-02-19 11:17:11 +0000 |
commit | c640057edaf4e9e62bc63943808c49af91312374 (patch) | |
tree | 447980d7eb85b544d33104c00ef4713b04389a38 /meta/classes/cmake.bbclass | |
parent | 3dc37c12c17d5bb6d4701a425a4f79f6e31784ee (diff) | |
download | poky-c640057edaf4e9e62bc63943808c49af91312374.tar.gz |
cmake: set CMAKE_EXPORT_NO_PACKAGE_REGISTRY
if a cmake file uses export(PACKAGE) command it creates a
folder ~/.cmake/package/<name> in the current user's
home-dir.
fix this host contermination by setting CMAKE_EXPORT_NO_PACKAGE_REGISTRY
to ON by default, which makes the export() command do nothing
(From OE-Core rev: fc7bd81cfe52c35fe26d146c1def8a7493bd2e25)
Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/cmake.bbclass')
-rw-r--r-- | meta/classes/cmake.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass index 7c055e8a3d..4af22268b7 100644 --- a/meta/classes/cmake.bbclass +++ b/meta/classes/cmake.bbclass | |||
@@ -187,6 +187,7 @@ cmake_do_configure() { | |||
187 | -DCMAKE_INSTALL_SO_NO_EXE=0 \ | 187 | -DCMAKE_INSTALL_SO_NO_EXE=0 \ |
188 | -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \ | 188 | -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \ |
189 | -DCMAKE_NO_SYSTEM_FROM_IMPORTED=1 \ | 189 | -DCMAKE_NO_SYSTEM_FROM_IMPORTED=1 \ |
190 | -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON \ | ||
190 | ${EXTRA_OECMAKE} \ | 191 | ${EXTRA_OECMAKE} \ |
191 | -Wno-dev | 192 | -Wno-dev |
192 | } | 193 | } |