Skip to content

Commit

Permalink
pico: prevent fallback to target name if metadata is specified
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Daft-Freak committed May 16, 2024
1 parent f91d306 commit 4ec7e21
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions 32blit-pico/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 4ec7e21

Please sign in to comment.