mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
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:
@@ -709,7 +709,7 @@ function(__set_component_cmakev1_properties component_name)
|
|||||||
get_target_property(component_sources "${component_real_target}" SOURCES)
|
get_target_property(component_sources "${component_real_target}" SOURCES)
|
||||||
if(component_sources)
|
if(component_sources)
|
||||||
__get_absolute_paths(PATHS "${component_sources}" BASE_DIR "${component_dir}" OUTPUT 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)
|
idf_component_set_property("${component_name}" COMPONENT_TYPE LIBRARY)
|
||||||
else()
|
else()
|
||||||
idf_component_set_property("${component_name}" COMPONENT_TYPE CONFIG_ONLY)
|
idf_component_set_property("${component_name}" COMPONENT_TYPE CONFIG_ONLY)
|
||||||
|
|||||||
Reference in New Issue
Block a user