summaryrefslogtreecommitdiffstats
path: root/meta/classes/cmake.bbclass
diff options
context:
space:
mode:
authorRoss Burton <ross@burtonini.com>2022-02-09 12:53:15 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-02-12 17:02:56 +0000
commit138df1940fff303de48c98a95ac1bbaef4f120e2 (patch)
treea4a3e2c0ea2b3ee3f640c4bf33d91e1074a8ba66 /meta/classes/cmake.bbclass
parent51e5f328635eb022143178c3169bae719509697a (diff)
downloadopenembedded-core-138df1940fff303de48c98a95ac1bbaef4f120e2.tar.gz
cmake: stop FetchContent from fetching content
CMake includes a FetchContent module, which will download further source code at configure time. With the network isolation this will now fail, but as not all environments support network isolation we can tell cmake to not download either for extra safety. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/cmake.bbclass')
-rw-r--r--meta/classes/cmake.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass
index 92b9197c48..fac7bbca7a 100644
--- a/meta/classes/cmake.bbclass
+++ b/meta/classes/cmake.bbclass
@@ -189,6 +189,7 @@ cmake_do_configure() {
-DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
-DCMAKE_NO_SYSTEM_FROM_IMPORTED=1 \
-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON \
+ -DFETCHCONTENT_FULLY_DISCONNECTED=ON \
${EXTRA_OECMAKE} \
-Wno-dev
}