Skip to content

Commit

Permalink
Temporary fix on CMake REQUIRES
Browse files Browse the repository at this point in the history
  • Loading branch information
huming2207 committed Jan 10, 2024
1 parent 74cb038 commit ca0e139
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,11 @@ if(CONFIG_LITTLEFS_SDMMC_SUPPORT)
endif()

if(IDF_VERSION_MAJOR GREATER_EQUAL 5)
if (CONFIG_LITTLEFS_SDMMC_SUPPORT)
list(APPEND pub_requires esp_partition sdmmc)
else()
list(APPEND pub_requires esp_partition sdmmc)
endif()
list(APPEND pub_requires esp_partition)
else()
list(APPEND pub_requires spi_flash)
endif()
list(APPEND priv_requires esptool_py spi_flash vfs)
list(APPEND priv_requires esptool_py spi_flash vfs sdmmc)

idf_component_register(
SRCS ${SOURCES}
Expand Down

0 comments on commit ca0e139

Please sign in to comment.