Commit 1752f2a 1 parent e887004 commit 1752f2a Copy full SHA for 1752f2a
File tree 1 file changed +12
-4
lines changed
1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -51,12 +51,20 @@ target_compile_definitions (debugprobe PRIVATE
51
51
52
52
option (DEBUG_ON_PICO "Compile firmware for the Pico instead of Debug Probe" OFF )
53
53
if (DEBUG_ON_PICO)
54
- target_compile_definitions (debugprobe PRIVATE
54
+ target_compile_definitions (debugprobe PRIVATE
55
55
DEBUG_ON_PICO=1
56
56
)
57
- set_target_properties (debugprobe PROPERTIES
58
- OUTPUT_NAME "debugprobe_on_pico"
59
- )
57
+ if (PICO_BOARD STREQUAL "pico" )
58
+ set_target_properties (debugprobe PROPERTIES
59
+ OUTPUT_NAME "debugprobe_on_pico"
60
+ )
61
+ elseif (PICO_BOARD STREQUAL "pico2" )
62
+ set_target_properties (debugprobe PROPERTIES
63
+ OUTPUT_NAME "debugprobe_on_pico2"
64
+ )
65
+ else ()
66
+ error("Unsupported board ${PICO_BOARD} " PICO_BOARD)
67
+ endif ()
60
68
endif ()
61
69
62
70
You can’t perform that action at this time.
0 commit comments