From b5a2054070f8236c2b37293257d80b1b70567851 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_coex/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/esp_coex/CMakeLists.txt b/components/esp_coex/CMakeLists.txt index 14b91cf4ee..c2ab2fb34c 100644 --- a/components/esp_coex/CMakeLists.txt +++ b/components/esp_coex/CMakeLists.txt @@ -36,6 +36,9 @@ if(CONFIG_ESP_COEX_SW_COEXIST_ENABLE OR CONFIG_ESP_COEX_EXTERNAL_COEXIST_ENABLE) add_prebuilt_library(${blob} "${CMAKE_CURRENT_SOURCE_DIR}/lib/${target_name}/lib${blob}.a" REQUIRES ${COMPONENT_NAME}) target_link_libraries(${COMPONENT_LIB} PUBLIC ${blob}) + if(CONFIG_IDF_TARGET_ESP32) + target_link_libraries(${COMPONENT_LIB} PRIVATE btdm_app) + endif() endif() target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format")