mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 20:54:32 +02:00
cmake: fix extra component dirs ordering
This commit is contained in:
@@ -30,6 +30,12 @@ macro(project name)
|
|||||||
endforeach()
|
endforeach()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(NOT MAIN_SRCS)
|
||||||
|
list(APPEND IDF_EXTRA_COMPONENT_DIRS "${CMAKE_SOURCE_DIR}/main")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
list(APPEND IDF_EXTRA_COMPONENT_DIRS "${CMAKE_SOURCE_DIR}/components")
|
||||||
|
|
||||||
if(EXTRA_COMPONENT_DIRS)
|
if(EXTRA_COMPONENT_DIRS)
|
||||||
spaces2list(EXTRA_COMPONENT_DIRS)
|
spaces2list(EXTRA_COMPONENT_DIRS)
|
||||||
|
|
||||||
@@ -39,12 +45,6 @@ macro(project name)
|
|||||||
endforeach()
|
endforeach()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
list(APPEND IDF_EXTRA_COMPONENT_DIRS "${CMAKE_SOURCE_DIR}/components")
|
|
||||||
|
|
||||||
if(NOT MAIN_SRCS)
|
|
||||||
list(APPEND IDF_EXTRA_COMPONENT_DIRS "${CMAKE_SOURCE_DIR}/main")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(COMPONENTS)
|
if(COMPONENTS)
|
||||||
set(IDF_COMPONENTS "${COMPONENTS}")
|
set(IDF_COMPONENTS "${COMPONENTS}")
|
||||||
endif()
|
endif()
|
||||||
|
Reference in New Issue
Block a user