Skip to content

Commit

Permalink
cmake: Declare nvs_flash as a dependency, instead of pushing absolute…
Browse files Browse the repository at this point in the history
… include path

For more information about how component requirements are declared, see
https://docs.espressif.com/projects/esp-idf/en/v4.0.1/api-guides/build-system.html#component-requirements

Closes loboris#8
  • Loading branch information
projectgus committed Jun 24, 2020
1 parent a06a578 commit 17fc226
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions main/CMakeLists.txt
@@ -1,10 +1,9 @@
set(SOURCES tft_demo.c)
idf_component_register(
SRCS ${SOURCES}
INCLUDE_DIRS
${CMAKE_CURRENT_LIST_DIR}
$ENV{IDF_PATH}/components
REQUIRES
tft
spiffs
PRIV_REQUIRES
nvs_flash
)
2 changes: 1 addition & 1 deletion main/tft_demo.c
Expand Up @@ -24,7 +24,7 @@
#include "freertos/event_groups.h"
#include "esp_sntp.h"
#include "esp_log.h"
#include "nvs_flash/include/nvs_flash.h"
#include "nvs_flash.h"

#endif

Expand Down

0 comments on commit 17fc226

Please sign in to comment.