kopia lustrzana https://github.com/espressif/esp-idf
cmake: exclude dot-dirs from added components
rodzic
078c69e689
commit
5175a152d9
|
@ -147,7 +147,11 @@ function(__build_init idf_path)
|
||||||
file(GLOB component_dirs ${idf_path}/components/*)
|
file(GLOB component_dirs ${idf_path}/components/*)
|
||||||
foreach(component_dir ${component_dirs})
|
foreach(component_dir ${component_dirs})
|
||||||
get_filename_component(component_dir ${component_dir} ABSOLUTE)
|
get_filename_component(component_dir ${component_dir} ABSOLUTE)
|
||||||
__component_add(${component_dir} ${prefix})
|
get_filename_component(base_dir ${component_dir} NAME)
|
||||||
|
string(SUBSTRING "${base_dir}" 0 1 first_char)
|
||||||
|
if(NOT first_char STREQUAL ".")
|
||||||
|
__component_add(${component_dir} ${prefix})
|
||||||
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
# Set components required by all other components in the build
|
# Set components required by all other components in the build
|
||||||
|
|
|
@ -148,7 +148,11 @@ function(__project_init components_var test_components_var)
|
||||||
file(GLOB component_dirs ${component_dir}/*)
|
file(GLOB component_dirs ${component_dir}/*)
|
||||||
foreach(component_dir ${component_dirs})
|
foreach(component_dir ${component_dirs})
|
||||||
if(EXISTS ${component_dir}/CMakeLists.txt)
|
if(EXISTS ${component_dir}/CMakeLists.txt)
|
||||||
idf_build_component(${component_dir})
|
get_filename_component(base_dir ${component_dir} NAME)
|
||||||
|
string(SUBSTRING "${base_dir}" 0 1 first_char)
|
||||||
|
if(NOT first_char STREQUAL ".")
|
||||||
|
idf_build_component(${component_dir})
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
endif()
|
endif()
|
||||||
|
|
Ładowanie…
Reference in New Issue