diff --git a/examples/common_components/protocol_examples_common/CMakeLists.txt b/examples/common_components/protocol_examples_common/CMakeLists.txt index 56b6b035669..a57438922ad 100644 --- a/examples/common_components/protocol_examples_common/CMakeLists.txt +++ b/examples/common_components/protocol_examples_common/CMakeLists.txt @@ -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) diff --git a/examples/protocols/dns_over_https/components/dns_over_https/CMakeLists.txt b/examples/protocols/dns_over_https/components/dns_over_https/CMakeLists.txt index 38bfd7d6e1b..8e7b57083f3 100644 --- a/examples/protocols/dns_over_https/components/dns_over_https/CMakeLists.txt +++ b/examples/protocols/dns_over_https/components/dns_over_https/CMakeLists.txt @@ -3,5 +3,5 @@ idf_component_register(SRCS "dns_over_https.c" "dns_utils.c" PRIV_REQUIRES nvs_flash lwip esp_event esp-tls esp_http_client) if(CONFIG_LWIP_HOOK_NETCONN_EXT_RESOLVE_CUSTOM) - target_link_libraries(${COMPONENT_LIB} "-u lwip_hook_netconn_external_resolve") + target_link_libraries(${COMPONENT_LIB} PRIVATE "-u lwip_hook_netconn_external_resolve") endif() diff --git a/examples/protocols/dns_over_https/main/CMakeLists.txt b/examples/protocols/dns_over_https/main/CMakeLists.txt index 90701fa2804..30048ac7121 100644 --- a/examples/protocols/dns_over_https/main/CMakeLists.txt +++ b/examples/protocols/dns_over_https/main/CMakeLists.txt @@ -7,4 +7,5 @@ endif() idf_component_register(SRCS "example_dns_over_https.c" INCLUDE_DIRS "." + PRIV_REQUIRES time_sync nvs_flash esp_event esp_timer mbedtls EMBED_TXTFILES ${cert_file})