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)
pull/13550/head
David Cermak 2024-03-27 16:50:24 +01:00
rodzic bfd3586f03
commit 132135519d
1 zmienionych plików z 0 dodań i 7 usunięć

Wyświetl plik

@ -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)