Skip to content

Commit 5c8b80c

Browse files
committed
Remove DEPENDS argument from add_custom_command(TARGET functions
This raises a warning with recent CMake versions, and isn't required due to the `pico_add_link_depend` already added for these files Fixes raspberrypi/picotool#235
1 parent 9fdfe11 commit 5c8b80c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

tools/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,6 @@ function(picotool_postprocess_binary TARGET)
579579
# Embed PT
580580
if (picotool_embed_pt)
581581
add_custom_command(TARGET ${TARGET} POST_BUILD
582-
DEPENDS ${picotool_embed_pt}
583582
COMMAND picotool partition create --quiet ${picotool_embed_pt} $<TARGET_FILE:${TARGET}> $<TARGET_FILE:${TARGET}>
584583
VERBATIM)
585584
endif()
@@ -591,7 +590,6 @@ function(picotool_postprocess_binary TARGET)
591590
extra_process_args
592591
)
593592
add_custom_command(TARGET ${TARGET} POST_BUILD
594-
DEPENDS ${picotool_sigfile}
595593
COMMAND picotool
596594
ARGS seal
597595
--quiet
@@ -604,7 +602,6 @@ function(picotool_postprocess_binary TARGET)
604602
# Encryption
605603
if (picotool_aesfile)
606604
add_custom_command(TARGET ${TARGET} POST_BUILD
607-
DEPENDS ${picotool_enc_sigfile} ${picotool_aesfile}
608605
COMMAND picotool encrypt --quiet --hash --sign $<TARGET_FILE:${TARGET}> $<TARGET_FILE:${TARGET}> ${picotool_aesfile} ${picotool_enc_sigfile}
609606
VERBATIM)
610607
if (ARGC EQUAL 2)

0 commit comments

Comments
 (0)