From 7c01b05677da27f5c3528129adba0d6e1d20429e Mon Sep 17 00:00:00 2001 From: Msq001 <760675063@qq.com> Date: Sat, 21 Oct 2023 14:19:41 +0800 Subject: [PATCH] Update CMakeLists.txt for "fatal error: esp_partition.h: No such file or directory" according to https://docs.espressif.com/projects/esp-idf/zh_CN/v5.0/esp32/migration-guides/release-5.x/storage.html --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3a1de72e913..36adeb619e9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -212,7 +212,7 @@ set(includedirs set(srcs ${CORE_SRCS} ${LIBRARY_SRCS} ${BLE_SRCS}) set(priv_includes cores/esp32/libb64) -set(requires spi_flash mbedtls wifi_provisioning wpa_supplicant esp_adc esp_eth http_parser) +set(requires spi_flash esp_partition mbedtls wifi_provisioning wpa_supplicant esp_adc esp_eth http_parser) set(priv_requires fatfs nvs_flash app_update spiffs bootloader_support bt esp_hid) idf_component_register(INCLUDE_DIRS ${includedirs} PRIV_INCLUDE_DIRS ${priv_includes} SRCS ${srcs} REQUIRES ${requires} PRIV_REQUIRES ${priv_requires})