From 9e8e9a6a4b941729768b27841f2637347a538a4a Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Wed, 24 Sep 2025 13:07:38 +0100 Subject: [PATCH] classes/cmake: set CMAKE_CROSSCOMPILING explicitly Let's be explicit and ensure that CMAKE_CROSSCOMPILING is explicitly set to true when we're cross-compiling. (From OE-Core rev: 82ae2d5497e8ddd825c0350250ed555588a37727) Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/classes-recipe/cmake.bbclass | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/classes-recipe/cmake.bbclass b/meta/classes-recipe/cmake.bbclass index 0dc8ea143b..b8cd622c2d 100644 --- a/meta/classes-recipe/cmake.bbclass +++ b/meta/classes-recipe/cmake.bbclass @@ -122,6 +122,7 @@ cmake_do_generate_toolchain_file() { if [ "${BUILD_SYS}" = "${HOST_SYS}" ]; then cmake_crosscompiling="set( CMAKE_CROSSCOMPILING FALSE )" else + cmake_crosscompiling="set( CMAKE_CROSSCOMPILING TRUE )" cmake_sysroot="set( CMAKE_SYSROOT \"${RECIPE_SYSROOT}\" )" fi