Procházet zdrojové kódy

cmake: error out when component is not found

Closes https://github.com/espressif/esp-idf/issues/3637
Renz Christian Bagaporo před 6 roky
rodič
revize
0af6d8ffe3
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      tools/cmake/component_utils.cmake

+ 1 - 1
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