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.
This commit is contained in:
Sudeep Mohanty
2025-12-18 10:37:49 +01:00
parent 3bda023b7d
commit d671bf70ee
+1 -1
View File
@@ -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)