From 51ab5403b4e805588a0ec7a85651966434111511 Mon Sep 17 00:00:00 2001 From: whowechina Date: Thu, 14 Sep 2023 22:09:25 +0800 Subject: [PATCH] Fix cmake copy destination --- firmware/src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/src/CMakeLists.txt b/firmware/src/CMakeLists.txt index 3b6316f..d14c9ec 100644 --- a/firmware/src/CMakeLists.txt +++ b/firmware/src/CMakeLists.txt @@ -25,7 +25,7 @@ function(make_firmware board board_def) pico_add_extra_outputs(${board}) add_custom_command(TARGET ${board} POST_BUILD - COMMAND cp ${board}.uf2 /mnt/d/Code/iidx_pico/firmware/build) + COMMAND cp ${board}.uf2 ${CMAKE_CURRENT_LIST_DIR}/..) endfunction() make_firmware(chu_pico BOARD_CHU_PICO)