From 9fb56d15627e831f315e8afcbd5115c5506b10e0 Mon Sep 17 00:00:00 2001 From: Mark Grosen Date: Mon, 17 Jul 2023 17:03:04 -0700 Subject: [PATCH] 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 --- ports/esp32/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/esp32/CMakeLists.txt b/ports/esp32/CMakeLists.txt index a4970c1a1b..4e29e96109 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)