mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
feat(cmakev2): Store COMPONENT_OVERRIDEN_DIR property for components
This commit is contained in:
committed by
Frantisek Hrbata
parent
71a1029035
commit
3679e1a216
@@ -594,6 +594,10 @@ function(__init_component)
|
||||
# The newly added component has a higher priority than the existing
|
||||
# one. Since the component name and targets are identical, update
|
||||
# the existing component with the new directory and priority.
|
||||
|
||||
# Store the overridden component directory (original component directory) for compatibility with cmakev1
|
||||
idf_component_set_property("${component_name}" COMPONENT_OVERRIDEN_DIR "${existing_component_directory}")
|
||||
|
||||
idf_component_set_property("${component_name}" COMPONENT_DIR "${component_directory}")
|
||||
idf_component_set_property("${component_name}" COMPONENT_SOURCE "${component_source}")
|
||||
idf_component_set_property("${component_name}" COMPONENT_PRIORITY ${component_priority})
|
||||
|
||||
Reference in New Issue
Block a user