From b3d2adcb6452c5bb63c4f05b56e6da811988caa9 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 17 Jul 2025 22:43:04 -0700 Subject: cmake: Define CMAKE_CLANG_TIDY with toolchain-clang clang-tidy is used by many packages these days and probed during build. (From OE-Core rev: 71ff6d6d1b152076e6dbf03a146f6a9fd2a9c065) Signed-off-by: Khem Raj Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- meta/classes-recipe/cmake.bbclass | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meta/classes-recipe/cmake.bbclass b/meta/classes-recipe/cmake.bbclass index 449fe2bb44..2c6d28b7a9 100644 --- a/meta/classes-recipe/cmake.bbclass +++ b/meta/classes-recipe/cmake.bbclass @@ -216,6 +216,12 @@ list(APPEND CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES ${STAGING_INCDIR_NATIVE}) EOF } +cmake_do_generate_toolchain_file:append:toolchain-clang() { + cat >> ${WORKDIR}/toolchain.cmake <