From bc5addf826ec7fdcf114187b745fc96dd980dc00 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 c1612006dd..cfd8738089 100644 --- a/components/esp_wifi/CMakeLists.txt +++ b/components/esp_wifi/CMakeLists.txt @@ -56,6 +56,10 @@ 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() if(CONFIG_SPIRAM)