1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-13 17:10:01 +00:00

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 <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ross Burton
2025-09-24 13:07:38 +01:00
committed by Richard Purdie
parent fbef81c833
commit 9e8e9a6a4b
+1
View File
@@ -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