From 2c62a152fbc4fc01c391aa1e93a2d4d9f4e562ca Mon Sep 17 00:00:00 2001 From: linruihao Date: Mon, 19 Feb 2024 11:51:49 +0800 Subject: [PATCH] fix(esp_coex): fix circular dependency issue on esp32 Closes https://github.com/espressif/esp-idf/issues/13113 --- components/esp_wifi/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/esp_wifi/CMakeLists.txt b/components/esp_wifi/CMakeLists.txt index 961bcccac7..88014f729d 100644 --- a/components/esp_wifi/CMakeLists.txt +++ b/components/esp_wifi/CMakeLists.txt @@ -51,5 +51,9 @@ if(CONFIG_ESP32_WIFI_ENABLED) set_property(TARGET ${blob} APPEND PROPERTY INTERFACE_LINK_LIBRARIES ${blob_reqs}) target_link_libraries(${COMPONENT_LIB} PUBLIC ${blob}) endforeach() + + if(CONFIG_ESP32_WIFI_SW_COEXIST_ENABLE AND CONFIG_IDF_TARGET_ESP32) + target_link_libraries(${COMPONENT_LIB} PRIVATE btdm_app) + endif() endif() endif()