]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
cmake: set CMAKE_EXPORT_NO_PACKAGE_REGISTRY
authorKonrad Weihmann <kweihmann@outlook.com>
Thu, 18 Feb 2021 19:29:59 +0000 (20:29 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 19 Feb 2021 10:59:57 +0000 (10:59 +0000)
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

Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/cmake.bbclass

index 7c055e8a3da1edf3e65fb606c2403a288401d8ab..4af22268b74e2250daf5e0fb5f16b1daa6cca93c 100644 (file)
@@ -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
 }