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
This commit is contained in:
Mark Grosen 2023-07-17 17:03:04 -07:00 committed by Damien George
parent cc9735ad6a
commit 9fb56d1562
1 changed files with 1 additions and 1 deletions

View File

@ -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)