From: Ross Burton Date: Wed, 9 Feb 2022 12:53:15 +0000 (+0000) Subject: cmake: stop FetchContent from fetching content X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=138df1940fff303de48c98a95ac1bbaef4f120e2;p=openembedded-core.git 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 Signed-off-by: Richard Purdie --- 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 }