From 0af6d8ffe382c209d930c2734fb6e36d6f900ce5 Mon Sep 17 00:00:00 2001 From: Renz Christian Bagaporo Date: Thu, 20 Jun 2019 12:10:41 +0800 Subject: [PATCH] cmake: error out when component is not found Closes https://github.com/espressif/esp-idf/issues/3637 --- tools/cmake/component_utils.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cmake/component_utils.cmake b/tools/cmake/component_utils.cmake index 410066477..6f07a040d 100644 --- a/tools/cmake/component_utils.cmake +++ b/tools/cmake/component_utils.cmake @@ -17,7 +17,7 @@ function(find_component_path find_name components component_paths variable) else() endif() # 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