Skip to content

Commit 6841d4d

Browse files
authored
Remove DEPENDS argument from add_custom_command(TARGET functions (#2489)
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 6860f0d commit 6841d4d

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
@@ -660,7 +660,6 @@ function(picotool_postprocess_binary TARGET)
660660
# Embed PT
661661
if (picotool_embed_pt)
662662
add_custom_command(TARGET ${TARGET} POST_BUILD
663-
DEPENDS ${picotool_embed_pt}
664663
COMMAND picotool partition create --quiet ${picotool_embed_pt} $<TARGET_FILE:${TARGET}> $<TARGET_FILE:${TARGET}>
665664
VERBATIM)
666665
endif()
@@ -672,7 +671,6 @@ function(picotool_postprocess_binary TARGET)
672671
extra_process_args
673672
)
674673
add_custom_command(TARGET ${TARGET} POST_BUILD
675-
DEPENDS ${picotool_sigfile}
676674
COMMAND picotool
677675
ARGS seal
678676
--quiet
@@ -700,7 +698,6 @@ function(picotool_postprocess_binary TARGET)
700698
endif()
701699

702700
add_custom_command(TARGET ${TARGET} POST_BUILD
703-
DEPENDS ${picotool_enc_sigfile} ${picotool_aesfile} ${picotool_ivfile}
704701
COMMAND picotool
705702
ARGS encrypt
706703
--quiet --hash --sign

0 commit comments

Comments
 (0)