* [RFC PATCH] cmake: set CMAKE_EXPORT_NO_PACKAGE_REGISTRY
@ 2021-02-18 19:29 Konrad Weihmann
0 siblings, 0 replies; only message in thread
From: Konrad Weihmann @ 2021-02-18 19:29 UTC (permalink / raw)
To: openembedded-core; +Cc: Konrad Weihmann
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>
---
meta/classes/cmake.bbclass | 1 +
1 file changed, 1 insertion(+)
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() {
-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
}
--
2.25.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-02-18 19:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-18 19:29 [RFC PATCH] cmake: set CMAKE_EXPORT_NO_PACKAGE_REGISTRY Konrad Weihmann
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.