mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2024-11-27 15:40:55 +01:00
Fix check for arduino component (#204)
This commit is contained in:
parent
b807e6671f
commit
987a69f544
1 changed files with 9 additions and 2 deletions
|
@ -14,11 +14,18 @@ elseif("nimble" IN_LIST BUILD_COMPONENTS OR "__nimble" IN_LIST __hack_component_
|
|||
)
|
||||
endif()
|
||||
|
||||
if("arduino" IN_LIST BUILD_COMPONENTS OR __hack_component_targets MATCHES "__idf_arduino")
|
||||
# Arduino install using IDF component manager
|
||||
if("espressif__arduino-esp32" IN_LIST BUILD_COMPONENTS OR "___idf_espressif__arduino-esp32" IN_LIST __hack_component_targets)
|
||||
list(APPEND ESP_NIMBLE_PRIV_REQUIRES
|
||||
arduino-esp32
|
||||
)
|
||||
# Manual installation of Arduino framework
|
||||
elseif("arduino" IN_LIST BUILD_COMPONENTS OR "__idf_arduino" IN_LIST __hack_component_targets)
|
||||
list(APPEND ESP_NIMBLE_PRIV_REQUIRES
|
||||
arduino
|
||||
)
|
||||
elseif("framework-arduinoespressif32" IN_LIST BUILD_COMPONENTS OR __hack_component_targets MATCHES "___idf_framework-arduinoespressif32")
|
||||
# PlatformIO
|
||||
elseif("framework-arduinoespressif32" IN_LIST BUILD_COMPONENTS OR "___idf_framework-arduinoespressif32" IN_LIST __hack_component_targets)
|
||||
list(APPEND ESP_NIMBLE_PRIV_REQUIRES
|
||||
framework-arduinoespressif32
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue