cmake: error out when component is not found

Closes https://github.com/espressif/esp-idf/issues/3637
This commit is contained in:
Renz Christian Bagaporo 2019-07-10 11:56:47 +08:00
parent e5c15c068e
commit 81139df91e

View File

@ -91,7 +91,7 @@ function(find_component_path find_name components component_paths variable)
else() else()
endif() endif()
# TODO: find a way to print the dependency chain that lead to this not-found component # TODO: find a way to print the dependency chain that lead to this not-found component
message(WARNING "Required component ${find_name} is not found in any of the provided COMPONENT_DIRS") message(FATAL_ERROR "Required component ${find_name} is not found in any of the provided COMPONENT_DIRS")
endfunction() endfunction()
# components_find_all: Search 'component_dirs' for components and return them # components_find_all: Search 'component_dirs' for components and return them