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)