mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'fix/absent-component-error-message' into 'master'
fix(build): fix error message for absent component See merge request espressif/esp-idf!32498
This commit is contained in:
commit
b5261aec9b
@ -293,9 +293,12 @@ endfunction()
|
|||||||
#
|
#
|
||||||
function(__build_resolve_and_add_req var component_target req type)
|
function(__build_resolve_and_add_req var component_target req type)
|
||||||
__component_get_target(_req_target ${req})
|
__component_get_target(_req_target ${req})
|
||||||
|
__component_get_property(_component_name ${component_target} COMPONENT_NAME)
|
||||||
|
if(NOT _req_target)
|
||||||
|
message(FATAL_ERROR "Failed to resolve component '${req}' required by component '${_component_name}'.")
|
||||||
|
endif()
|
||||||
__component_get_property(_req_registered ${_req_target} __COMPONENT_REGISTERED)
|
__component_get_property(_req_registered ${_req_target} __COMPONENT_REGISTERED)
|
||||||
if(NOT _req_target OR NOT _req_registered)
|
if(NOT _req_registered)
|
||||||
__component_get_property(_component_name ${component_target} COMPONENT_NAME)
|
|
||||||
message(FATAL_ERROR "Failed to resolve component '${req}' required by component '${_component_name}'.")
|
message(FATAL_ERROR "Failed to resolve component '${req}' required by component '${_component_name}'.")
|
||||||
endif()
|
endif()
|
||||||
__component_set_property(${component_target} ${type} ${_req_target} APPEND)
|
__component_set_property(${component_target} ${type} ${_req_target} APPEND)
|
||||||
|
Loading…
Reference in New Issue
Block a user