Skip to content

Commit

Permalink
build(cmake): disable cp to out directory
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidFederl committed Jul 1, 2024
1 parent 5967e9a commit fd234ef
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions helpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ function(create_enV5_executable target)
pico_enable_stdio_uart(${target} 0)
# create map/bin/hex/uf2 file etc.
pico_add_uf2_output(${target})
# copy u2f files after build to out directory
file(RELATIVE_PATH relative_path ${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_LIST_DIR})
add_custom_command(TARGET ${target} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
${CMAKE_BINARY_DIR}/${relative_path}/${target}.uf2
${CMAKE_SOURCE_DIR}/out/${CMAKE_BUILD_TYPE}/${relative_path}/${target}.uf2)
# # copy u2f files after build to out directory
# file(RELATIVE_PATH relative_path ${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_LIST_DIR})
# add_custom_command(TARGET ${target} POST_BUILD
# COMMAND ${CMAKE_COMMAND} -E copy
# ${CMAKE_BINARY_DIR}/${relative_path}/${target}.uf2
# ${CMAKE_SOURCE_DIR}/out/${CMAKE_BUILD_TYPE}-Rev${REVISION}/${relative_path}/${target}.uf2)
endfunction()

function(add_dependency_graph)
Expand Down

0 comments on commit fd234ef

Please sign in to comment.