From 208693b05c1032c412f7e4041cadf87a48e04821 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Mon, 21 Jul 2025 14:24:22 +0100 Subject: cmake: remove CMAKE_SYSTEM_* from the native toolchain If these variables are set explictly then CMake assumes that it is cross-compiling[1]. We don't need to set them as the default values as detected by CMake are correct for native. [1] https://cmake.org/cmake/help/latest/variable/CMAKE_CROSSCOMPILING.html (From OE-Core rev: 0ea50cba64b5004722051c0ece900443dc4ca929) Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/classes-recipe/cmake.bbclass | 2 -- 1 file changed, 2 deletions(-) diff --git a/meta/classes-recipe/cmake.bbclass b/meta/classes-recipe/cmake.bbclass index 2c6d28b7a9..1488d744d4 100644 --- a/meta/classes-recipe/cmake.bbclass +++ b/meta/classes-recipe/cmake.bbclass @@ -180,8 +180,6 @@ list(APPEND CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES ${includedir}) EOF cat > ${WORKDIR}/toolchain-native.cmake <