]> code.ossystems Code Review - openembedded-core.git/commitdiff
cmake: stop FetchContent from fetching content
authorRoss Burton <ross@burtonini.com>
Wed, 9 Feb 2022 12:53:15 +0000 (12:53 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 12 Feb 2022 17:02:56 +0000 (17:02 +0000)
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>
meta/classes/cmake.bbclass

index 92b9197c48779d49079c24e83a48f7f7b96cba00..fac7bbca7a36f72b6f3f7ee9a011a66e3e8e9fe0 100644 (file)
@@ -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
 }