From 0d2b4a2c376c95a7a4ba4373cc31fcc01cccf567 Mon Sep 17 00:00:00 2001 From: Charlie Birks Date: Mon, 12 Aug 2024 17:38:38 +0100 Subject: [PATCH] pico: add SDK CMake modules to path in toolchain This fixes the "System is unknown to cmake" message and also fixes elf2uf2 blowing up because the exectutable is missing the .elf suffix --- pico-common.toolchain | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pico-common.toolchain b/pico-common.toolchain index f45c1ff11..46ebac1da 100644 --- a/pico-common.toolchain +++ b/pico-common.toolchain @@ -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")