mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(wifi): Remove optional dependency on esp_wifi_remote if !ESP_WIFI_ENABLED
The dependency could be introduced from dependent component if needed. The else() part of the condition wasn't correct, as it didn't check for esp_wifi_remote from component manager, which is prefixed by Espressif namespace, so the correct statement would be: if(espressif__esp_wifi_remote IN_LIST build_components)
This commit is contained in:
parent
bfd3586f03
commit
132135519d
@ -77,13 +77,6 @@ if(CONFIG_ESP_WIFI_ENABLED)
|
||||
target_link_libraries(${COMPONENT_LIB} PUBLIC ${blob})
|
||||
endforeach()
|
||||
endif()
|
||||
else()
|
||||
# No local wifi: use esp_wifi_remote if it's available within our components
|
||||
idf_build_get_property(build_components BUILD_COMPONENTS)
|
||||
if(esp_wifi_remote IN_LIST build_components)
|
||||
idf_component_get_property(esp_wifi_remote esp_wifi_remote COMPONENT_LIB)
|
||||
target_link_libraries(${COMPONENT_LIB} PUBLIC ${esp_wifi_remote})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(CONFIG_SPIRAM)
|
||||
|
Loading…
x
Reference in New Issue
Block a user