diff --git a/components/esp_websocket_client/examples/linux/CMakeLists.txt b/components/esp_websocket_client/examples/linux/CMakeLists.txt index 2a08ac5e8c..f09f10185c 100644 --- a/components/esp_websocket_client/examples/linux/CMakeLists.txt +++ b/components/esp_websocket_client/examples/linux/CMakeLists.txt @@ -1,14 +1,15 @@ cmake_minimum_required(VERSION 3.5) -set(COMPONENTS esp_websocket_client main) +include($ENV{IDF_PATH}/tools/cmake/project.cmake) + set(common_component_dir ../../../../common_components) set(EXTRA_COMPONENT_DIRS - ../../.. + ../.. "${common_component_dir}/linux_compat/esp_timer" "${common_component_dir}/linux_compat" - "${common_component_dir}/linux_compat/freertos") - -list(APPEND EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/protocols/linux_stubs/esp_stubs) -include($ENV{IDF_PATH}/tools/cmake/project.cmake) + "${common_component_dir}/linux_compat/freertos" + $ENV{IDF_PATH}/examples/protocols/linux_stubs/esp_stubs + $ENV{IDF_PATH}/examples/common_components/protocol_examples_common) +set(COMPONENTS main) project(websocket) diff --git a/components/esp_websocket_client/examples/linux/main/idf_component.yml b/components/esp_websocket_client/examples/linux/main/idf_component.yml deleted file mode 100644 index 1ca7c86801..0000000000 --- a/components/esp_websocket_client/examples/linux/main/idf_component.yml +++ /dev/null @@ -1,4 +0,0 @@ -dependencies: - idf: ">5.2" - protocol_examples_common: - path: ${IDF_PATH}/examples/common_components/protocol_examples_common