fix(arduino): changes definitions in cmakelists.txt file (#10259)

Fixes an issue related to ESP_MATTER component that defines a path using ESP32 as folder. Because Arduino defines ESP32 to 1, it causes an expansion error for folder using ESP32 folder name.
This commit is contained in:
Rodrigo Garcia 2024-08-28 16:46:48 -03:00 committed by GitHub
parent ef5c6b94b3
commit e5394ccef7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -320,7 +320,7 @@ target_compile_options(${COMPONENT_TARGET} PUBLIC
-DARDUINO_ARCH_ESP32 -DARDUINO_ARCH_ESP32
-DARDUINO_BOARD="${idf_target_caps}_DEV" -DARDUINO_BOARD="${idf_target_caps}_DEV"
-DARDUINO_VARIANT="${CONFIG_ARDUINO_VARIANT}" -DARDUINO_VARIANT="${CONFIG_ARDUINO_VARIANT}"
-DESP32) -DESP32=ESP32)
if(CONFIG_AUTOSTART_ARDUINO) if(CONFIG_AUTOSTART_ARDUINO)
# in autostart mode, arduino-esp32 contains app_main() function and needs to # in autostart mode, arduino-esp32 contains app_main() function and needs to