diff options
| author | Mark Grosen <mark@grosen.org> | 2023-07-17 17:03:04 -0700 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-07-21 00:13:10 +1000 |
| commit | 9fb56d15627e831f315e8afcbd5115c5506b10e0 (patch) | |
| tree | 95f7fa9ec70cee71a2a8914344faa41e479c693a | |
| parent | cc9735ad6a5c3e198eabb406ee8d8ec687d5ec59 (diff) | |
esp32/CMakeLists: Enable multiple extra component directories in build.
The EXTRA_COMPONENT_DIRS variable is a list so adding a directory so should
be done via append, not set. This enables boards to use other components
in the build. See:
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/build-system.html#optional-project-variables
| -rw-r--r-- | ports/esp32/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/esp32/CMakeLists.txt b/ports/esp32/CMakeLists.txt index a4970c1a1..4e29e9610 100644 --- a/ports/esp32/CMakeLists.txt +++ b/ports/esp32/CMakeLists.txt @@ -47,7 +47,7 @@ set(SDKCONFIG_DEFAULTS ${CMAKE_BINARY_DIR}/sdkconfig.combined) include($ENV{IDF_PATH}/tools/cmake/project.cmake) # Set the location of the main component for the project (one per target). -set(EXTRA_COMPONENT_DIRS main_${IDF_TARGET}) +list(APPEND EXTRA_COMPONENT_DIRS main_${IDF_TARGET}) # Define the project. project(micropython) |
