]> granicus.if.org Git - esp-idf/commitdiff
cmake: error out when component is not found
authorRenz Christian Bagaporo <renz@espressif.com>
Thu, 20 Jun 2019 04:10:41 +0000 (12:10 +0800)
committerRenz Christian Bagaporo <renz@espressif.com>
Thu, 20 Jun 2019 04:10:41 +0000 (12:10 +0800)
Closes https://github.com/espressif/esp-idf/issues/3637

tools/cmake/component_utils.cmake

index 4100664770d11e5104a2b0ca27d495ceac07901b..6f07a040d946b774dcccdded40a979a1b4262df1 100644 (file)
@@ -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