feat(cmakev2): Store COMPONENT_OVERRIDEN_DIR property for components

This commit is contained in:
Sudeep Mohanty
2025-11-04 07:48:15 +01:00
committed by Frantisek Hrbata
parent 71a1029035
commit 3679e1a216
+4
View File
@@ -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})