From 2e81c7c0cd0ab28b177d9343019b6fec5874f5dd Mon Sep 17 00:00:00 2001 From: Renz Christian Bagaporo Date: Wed, 10 Jul 2019 11:56:47 +0800 Subject: [PATCH] cmake: error out when component is not found Closes https://github.com/espressif/esp-idf/issues/3637 --- tools/cmake/scripts/expand_requirements.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cmake/scripts/expand_requirements.cmake b/tools/cmake/scripts/expand_requirements.cmake index d8660dcc6b..8319e19154 100644 --- a/tools/cmake/scripts/expand_requirements.cmake +++ b/tools/cmake/scripts/expand_requirements.cmake @@ -74,7 +74,7 @@ function(find_component_path find_name component_paths variable) endif() endforeach() # 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() # components_find_all: Search 'component_dirs' for components and return them