Skip to content

Commit a700b77

Browse files
authored
Small pico_pre_load_platform.cmake tweak (#1867)
Make one of the messages more accurate, in the event that the user changes `PICO_DEFAULT_RP2350_PLATFORM`
1 parent a46addb commit a700b77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/pico_pre_load_platform.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if (DEFINED ENV{PICO_PLATFORM} AND NOT PICO_PLATFORM)
1313
endif()
1414
set(PICO_SAVED_PLATFORM "${PICO_PLATFORM}")
1515

16-
# If PICO_PLATFORM is specified byt not PICO_BOARD, we'll make a stab at defaulting
16+
# If PICO_PLATFORM is specified but not PICO_BOARD, we'll make a stab at defaulting
1717
if (NOT PICO_DEFAULT_BOARD_rp2040)
1818
set(PICO_DEFAULT_BOARD_rp2040 "pico")
1919
endif()
@@ -84,7 +84,7 @@ if (NOT COMMAND pico_expand_pico_platform)
8484
function(pico_expand_pico_platform FUNC DO_MESSAGE)
8585
if (${FUNC} STREQUAL "rp2350")
8686
if (DO_MESSAGE)
87-
message("Auto-converting non-specific PICO_PLATFORM='rp2350' to 'rp2350-arm-s'")
87+
message("Auto-converting non-specific PICO_PLATFORM='rp2350' to '${PICO_DEFAULT_RP2350_PLATFORM}'")
8888
endif()
8989
set(${FUNC} "${PICO_DEFAULT_RP2350_PLATFORM}" PARENT_SCOPE)
9090
endif()

0 commit comments

Comments
 (0)