Skip to content

Commit

Permalink
esp32/CMakeLists: Enable multiple extra component directories in build.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mgsb authored and dpgeorge committed Jul 20, 2023
1 parent cc9735a commit 9fb56d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ports/esp32/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 9fb56d1

Please sign in to comment.