mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
cmake: fix extra component dir ordering
This commit is contained in:
parent
b40c7c78e3
commit
7f37fb81ca
@ -217,18 +217,18 @@ function(__project_init components_var test_components_var)
|
||||
"but component manager is not enabled. Please set IDF_COMPONENT_MANAGER environment variable.")
|
||||
endif()
|
||||
|
||||
spaces2list(EXTRA_COMPONENT_DIRS)
|
||||
foreach(component_dir ${EXTRA_COMPONENT_DIRS})
|
||||
__project_component_dir("${component_dir}")
|
||||
endforeach()
|
||||
|
||||
__project_component_dir("${CMAKE_CURRENT_LIST_DIR}/components")
|
||||
|
||||
# Look for components in the usual places: CMAKE_CURRENT_LIST_DIR/main,
|
||||
# CMAKE_CURRENT_LIST_DIR/components, and the extra component dirs
|
||||
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/main")
|
||||
__project_component_dir("${CMAKE_CURRENT_LIST_DIR}/main")
|
||||
endif()
|
||||
|
||||
__project_component_dir("${CMAKE_CURRENT_LIST_DIR}/components")
|
||||
|
||||
spaces2list(EXTRA_COMPONENT_DIRS)
|
||||
foreach(component_dir ${EXTRA_COMPONENT_DIRS})
|
||||
__project_component_dir("${component_dir}")
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
spaces2list(COMPONENTS)
|
||||
|
Loading…
Reference in New Issue
Block a user