From 913bc0534e48a3109ea40cd3f038aa621a81ad1d Mon Sep 17 00:00:00 2001 From: h2zero Date: Fri, 26 May 2023 16:13:10 -0600 Subject: [PATCH] Fix build with platformio IDF+Arduino --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index eb6349f..0ba4609 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,6 +18,10 @@ if("arduino" IN_LIST BUILD_COMPONENTS OR __hack_component_targets MATCHES "__idf list(APPEND ESP_NIMBLE_PRIV_REQUIRES arduino ) +elseif("framework-arduinoespressif32" IN_LIST BUILD_COMPONENTS OR __hack_component_targets MATCHES "___idf_framework-arduinoespressif32") + list(APPEND ESP_NIMBLE_PRIV_REQUIRES + framework-arduinoespressif32 + ) endif() idf_component_register(