Просмотр исходного кода

Merge branch 'bugfix/fix_extra_component_dirs_ordering_v3.3' into 'release/v3.3'

cmake: fix extra component dirs ordering (v3.3)

See merge request espressif/esp-idf!7730
Angus Gratton 6 лет назад
Родитель
Сommit
46c8f40a83
1 измененных файлов с 6 добавлено и 6 удалено
  1. 6 6
      tools/cmake/project.cmake

+ 6 - 6
tools/cmake/project.cmake

@@ -30,6 +30,12 @@ macro(project name)
         endforeach()
     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)
         spaces2list(EXTRA_COMPONENT_DIRS)
 
@@ -39,12 +45,6 @@ macro(project name)
         endforeach()
     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)
         set(IDF_COMPONENTS "${COMPONENTS}")
     endif()