mirror of
https://github.com/whowechina/mai_pico.git
synced 2024-11-30 22:17:17 +01:00
Cmake knows to update built time
This commit is contained in:
parent
7f97e8538f
commit
f59fecdbb3
Binary file not shown.
@ -26,6 +26,9 @@ function(make_firmware board board_def)
|
||||
|
||||
pico_add_extra_outputs(${board})
|
||||
|
||||
add_custom_command(TARGET ${board} PRE_BUILD
|
||||
COMMAND touch ${CMAKE_CURRENT_SOURCE_DIR}/cli.c)
|
||||
|
||||
add_custom_command(TARGET ${board} POST_BUILD
|
||||
COMMAND cp ${board}.uf2 ${CMAKE_CURRENT_LIST_DIR}/..)
|
||||
endfunction()
|
||||
|
Loading…
Reference in New Issue
Block a user