From 092f9348754f1c754ebbe832e8aa000da995fd0c Mon Sep 17 00:00:00 2001 From: Frantisek Hrbata Date: Mon, 18 Aug 2025 15:31:44 +0200 Subject: [PATCH] fix(cmakev2/component): add component name to __DEPENDENCY_CHAIN The __DEPENDENCY_CHAIN was not properly created because the component names were not added to it. Fix this by maintaining it correctly. Signed-off-by: Frantisek Hrbata --- tools/cmakev2/component.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/cmakev2/component.cmake b/tools/cmakev2/component.cmake index f5fd8b9bf98..069f0405e35 100644 --- a/tools/cmakev2/component.cmake +++ b/tools/cmakev2/component.cmake @@ -549,6 +549,7 @@ function(idf_component_include name) return() endif() + list(APPEND __DEPENDENCY_CHAIN "${name}") # Evaluate the CMakeLists.txt file of the component. idf_build_get_property(build_dir BUILD_DIR build_dir) add_subdirectory("${component_directory}" "${build_dir}/esp-idf/${component_name}" EXCLUDE_FROM_ALL)