diff options
| author | Ross Burton <ross.burton@arm.com> | 2025-09-24 13:07:38 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-09-25 11:09:04 +0100 |
| commit | 9e8e9a6a4b941729768b27841f2637347a538a4a (patch) | |
| tree | 292b0f915a377afd482681861e06c308432e4938 | |
| parent | fbef81c83367c8ba1d3bf57547ce52758cc87ce6 (diff) | |
| download | poky-9e8e9a6a4b941729768b27841f2637347a538a4a.tar.gz | |
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>
| -rw-r--r-- | meta/classes-recipe/cmake.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
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() { | |||
| 122 | if [ "${BUILD_SYS}" = "${HOST_SYS}" ]; then | 122 | if [ "${BUILD_SYS}" = "${HOST_SYS}" ]; then |
| 123 | cmake_crosscompiling="set( CMAKE_CROSSCOMPILING FALSE )" | 123 | cmake_crosscompiling="set( CMAKE_CROSSCOMPILING FALSE )" |
| 124 | else | 124 | else |
| 125 | cmake_crosscompiling="set( CMAKE_CROSSCOMPILING TRUE )" | ||
| 125 | cmake_sysroot="set( CMAKE_SYSROOT \"${RECIPE_SYSROOT}\" )" | 126 | cmake_sysroot="set( CMAKE_SYSROOT \"${RECIPE_SYSROOT}\" )" |
| 126 | fi | 127 | fi |
| 127 | 128 | ||
