From: Konrad Weihmann Date: Thu, 18 Feb 2021 19:29:59 +0000 (+0100) Subject: cmake: set CMAKE_EXPORT_NO_PACKAGE_REGISTRY X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~8707 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc7bd81cfe52c35fe26d146c1def8a7493bd2e25;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git cmake: set CMAKE_EXPORT_NO_PACKAGE_REGISTRY if a cmake file uses export(PACKAGE) command it creates a folder ~/.cmake/package/ 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 Signed-off-by: Konrad Weihmann Signed-off-by: Richard Purdie --- diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass index 7c055e8a3da..4af22268b74 100644 --- a/meta/classes/cmake.bbclass +++ b/meta/classes/cmake.bbclass @@ -187,6 +187,7 @@ cmake_do_configure() { -DCMAKE_INSTALL_SO_NO_EXE=0 \ -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \ -DCMAKE_NO_SYSTEM_FROM_IMPORTED=1 \ + -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON \ ${EXTRA_OECMAKE} \ -Wno-dev }