Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: lhdjply <[email protected]>
  • Loading branch information
lhdjply committed Jul 24, 2024
1 parent fd975d5 commit 928a316
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ports/esp32/main/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ set(IDF_COMPONENTS
bootloader_support
bt
driver
esp_adc_cal
esp_common
esp_eth
esp_event
Expand All @@ -120,7 +119,6 @@ set(IDF_COMPONENTS
log
lwip
mbedtls
mdns
newlib
nvs_flash
sdmmc
Expand All @@ -135,6 +133,13 @@ set(IDF_COMPONENTS
nghttp
)

if(IDF_VERSION_MAJOR GREATER_EQUAL 5)
list(APPEND IDF_COMPONENTS esp_adc)
else()
list(APPEND IDF_COMPONENTS esp_adc_cal)
list(APPEND IDF_COMPONENTS mdns)
endif()

if(IDF_VERSION_MINOR GREATER_EQUAL 1 OR IDF_VERSION_MAJOR GREATER_EQUAL 5)
list(APPEND IDF_COMPONENTS esp_netif)
endif()
Expand Down

0 comments on commit 928a316

Please sign in to comment.