]> granicus.if.org Git - esp-idf/commitdiff
cmake: error out when component is not found
authorRenz Christian Bagaporo <renz@espressif.com>
Wed, 10 Jul 2019 03:56:47 +0000 (11:56 +0800)
committerRenz Christian Bagaporo <renz@espressif.com>
Wed, 10 Jul 2019 03:58:38 +0000 (11:58 +0800)
Closes https://github.com/espressif/esp-idf/issues/3637

tools/cmake/scripts/expand_requirements.cmake

index d8660dcc6b4d7ff69624ae1a568c76b303e62057..8319e19154f27d11f772052e977cc6b4886d23ea 100644 (file)
@@ -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