From 4ec7e21b385ebe64ec2f7c40c34e0035ca2731c2 Mon Sep 17 00:00:00 2001 From: Charlie Birks Date: Thu, 16 May 2024 14:34:06 +0100 Subject: [PATCH] pico: prevent fallback to target name if metadata is specified The pico SDK sets a default program name if PICO_PROGRAM_NAME is not set. As we're specifying all the metadata using bi_decl directly, disable the fallback. --- 32blit-pico/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/32blit-pico/CMakeLists.txt b/32blit-pico/CMakeLists.txt index da94def58..280f9539a 100644 --- a/32blit-pico/CMakeLists.txt +++ b/32blit-pico/CMakeLists.txt @@ -222,4 +222,7 @@ function(blit_metadata TARGET FILE) # add the generated source target_sources(${TARGET} PRIVATE ${METADATA_SOURCE}) + # avoid the fallback to target name + target_compile_definitions(${TARGET} PRIVATE PICO_NO_BI_PROGRAM_NAME=1) + endfunction()