mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
cmake: treat unregistered components as unresolved
This commit is contained in:
parent
6517c5033a
commit
4df98b5489
@ -181,7 +181,8 @@ endfunction()
|
||||
#
|
||||
function(__build_resolve_and_add_req var component_target req type)
|
||||
__component_get_target(_component_target ${req})
|
||||
if(NOT _component_target)
|
||||
__component_get_property(_component_registered ${component_target} __COMPONENT_REGISTERED)
|
||||
if(NOT _component_target OR NOT _component_registered)
|
||||
message(FATAL_ERROR "Failed to resolve component '${req}'.")
|
||||
endif()
|
||||
__component_set_property(${component_target} ${type} ${_component_target} APPEND)
|
||||
|
Loading…
x
Reference in New Issue
Block a user