From d671bf70ee8f0f8043dd286329fa0ed9a1d15555 Mon Sep 17 00:00:00 2001 From: Sudeep Mohanty Date: Thu, 18 Dec 2025 10:37:49 +0100 Subject: [PATCH] fix(cmakev2): Correctly set SRCS property for cmakev2 components The function __set_component_cmakev1_properties() sets cmakev1 properties for cmakev2 components to maintain backword copatibility. However, the function was setting SOURCES property instead of SRCS property as was intended. --- tools/cmakev2/component.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cmakev2/component.cmake b/tools/cmakev2/component.cmake index 0b169753b2..e6bab67a6d 100644 --- a/tools/cmakev2/component.cmake +++ b/tools/cmakev2/component.cmake @@ -709,7 +709,7 @@ function(__set_component_cmakev1_properties component_name) get_target_property(component_sources "${component_real_target}" SOURCES) if(component_sources) __get_absolute_paths(PATHS "${component_sources}" BASE_DIR "${component_dir}" OUTPUT sources) - idf_component_set_property("${component_name}" SOURCES "${sources}") + idf_component_set_property("${component_name}" SRCS "${sources}") idf_component_set_property("${component_name}" COMPONENT_TYPE LIBRARY) else() idf_component_set_property("${component_name}" COMPONENT_TYPE CONFIG_ONLY)