Skip to content

Commit

Permalink
pico: add SDK CMake modules to path in toolchain
Browse files Browse the repository at this point in the history
This fixes the "System is unknown to cmake" message and also fixes elf2uf2 blowing up because the exectutable is missing the .elf suffix
  • Loading branch information
Daft-Freak committed Aug 12, 2024
1 parent 779c19d commit 0d2b4a2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pico-common.toolchain
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,7 @@ if (NOT PICO_SDK_PATH)
set(PICO_SDK_PATH ${CMAKE_CURRENT_LIST_DIR}/../pico-sdk)
endif()

# we need to do this as pico_sdk_init happens later than usual
list(APPEND CMAKE_MODULE_PATH ${PICO_SDK_PATH}/cmake)

set(32BLIT_DIR ${CMAKE_CURRENT_LIST_DIR} CACHE PATH "Path to 32blit.cmake")

0 comments on commit 0d2b4a2

Please sign in to comment.