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:
parent
cc9735ad6a
commit
9fb56d1562
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user