From c83b76ea8fc53f429c0b8025cd37769731c3a353 Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Thu, 21 Sep 2023 16:27:13 +0200 Subject: [PATCH] fix(mdns): reference protocol_examples_common from IDF This makes the example project usable from the component registry --- components/mdns/examples/CMakeLists.txt | 4 ---- components/mdns/examples/main/idf_component.yml | 2 ++ 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/components/mdns/examples/CMakeLists.txt b/components/mdns/examples/CMakeLists.txt index cbea5b1bd..cf9625cbe 100644 --- a/components/mdns/examples/CMakeLists.txt +++ b/components/mdns/examples/CMakeLists.txt @@ -2,9 +2,5 @@ # in this exact order for cmake to work correctly cmake_minimum_required(VERSION 3.5) -set(EXTRA_COMPONENT_DIRS "..") -# This example uses an extra component for common functions such as Wi-Fi and Ethernet connection. -list(APPEND EXTRA_COMPONENT_DIRS "../../../common_components/protocol_examples_common") - include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(mdns_test) diff --git a/components/mdns/examples/main/idf_component.yml b/components/mdns/examples/main/idf_component.yml index 95845f82a..952edfb0d 100644 --- a/components/mdns/examples/main/idf_component.yml +++ b/components/mdns/examples/main/idf_component.yml @@ -3,3 +3,5 @@ dependencies: idf: ">=5.0" espressif/mdns: version: "^1.0.0" + protocol_examples_common: + path: ${IDF_PATH}/examples/common_components/protocol_examples_common