mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
fix(dns_over_https): declare main and protocol_examples_common deps
dns_over_https/main includes time_sync.h, nvs_flash.h, esp_event.h, esp_timer.h, and mbedtls headers. Declare nvs_flash, esp_event, esp_timer, mbedtls and time_sync in PRIV_REQUIRES so the build is self-describing under any build system. Also move esp_netif from PRIV_REQUIRES to REQUIRES in protocol_examples_common, since its public header exposes esp_netif.h. Also add the PRIVATE keyword to target_link_libraries in the dns_over_https component — CMake rejects mixed keyword/plain signatures on the same target.
This commit is contained in:
@@ -33,7 +33,8 @@ endif()
|
||||
|
||||
idf_component_register(SRCS "${srcs}"
|
||||
INCLUDE_DIRS "include"
|
||||
PRIV_REQUIRES esp_netif esp_driver_gpio esp_driver_uart esp_wifi vfs console openthread)
|
||||
REQUIRES esp_netif
|
||||
PRIV_REQUIRES esp_driver_gpio esp_driver_uart esp_wifi vfs console openthread)
|
||||
|
||||
if(CONFIG_EXAMPLE_PROVIDE_WIFI_CONSOLE_CMD)
|
||||
idf_component_optional_requires(PRIVATE console)
|
||||
|
||||
Reference in New Issue
Block a user