Browse Source

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
pull/12035/head
Mark Grosen 1 year ago
committed by Damien George
parent
commit
9fb56d1562
  1. 2
      ports/esp32/CMakeLists.txt

2
ports/esp32/CMakeLists.txt

@ -47,7 +47,7 @@ set(SDKCONFIG_DEFAULTS ${CMAKE_BINARY_DIR}/sdkconfig.combined)
include($ENV{IDF_PATH}/tools/cmake/project.cmake) include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# Set the location of the main component for the project (one per target). # 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. # Define the project.
project(micropython) project(micropython)

Loading…
Cancel
Save