Skip to content

Commit 744cbc2

Browse files
supcikSuGlider
andauthored
fix CMake file (#7500)
Co-authored-by: Rodrigo Garcia <[email protected]>
1 parent 99f66d3 commit 744cbc2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,10 @@ if(NOT CONFIG_FREERTOS_HZ EQUAL 1000 AND NOT "$ENV{ARDUINO_SKIP_TICK_CHECK}")
217217
endif()
218218

219219
string(TOUPPER ${CONFIG_ARDUINO_VARIANT} idf_target_caps)
220+
string(REPLACE "-" "_" idf_target_for_macro "${idf_target_caps}")
220221
target_compile_options(${COMPONENT_TARGET} PUBLIC
221222
-DARDUINO=10812
222-
-DARDUINO_${idf_target_caps}_DEV
223+
-DARDUINO_${idf_target_for_macro}_DEV
223224
-DARDUINO_ARCH_ESP32
224225
-DARDUINO_BOARD="${idf_target_caps}_DEV"
225226
-DARDUINO_VARIANT="${CONFIG_ARDUINO_VARIANT}"

0 commit comments

Comments
 (0)