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
This commit is contained in:
will-v-pi 2025-05-30 14:35:25 +01:00 committed by GitHub
parent 6860f0d882
commit 6841d4d15b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -660,7 +660,6 @@ function(picotool_postprocess_binary TARGET)
# Embed PT
if (picotool_embed_pt)
add_custom_command(TARGET ${TARGET} POST_BUILD
DEPENDS ${picotool_embed_pt}
COMMAND picotool partition create --quiet ${picotool_embed_pt} $<TARGET_FILE:${TARGET}> $<TARGET_FILE:${TARGET}>
VERBATIM)
endif()
@ -672,7 +671,6 @@ function(picotool_postprocess_binary TARGET)
extra_process_args
)
add_custom_command(TARGET ${TARGET} POST_BUILD
DEPENDS ${picotool_sigfile}
COMMAND picotool
ARGS seal
--quiet
@ -700,7 +698,6 @@ function(picotool_postprocess_binary TARGET)
endif()
add_custom_command(TARGET ${TARGET} POST_BUILD
DEPENDS ${picotool_enc_sigfile} ${picotool_aesfile} ${picotool_ivfile}
COMMAND picotool
ARGS encrypt
--quiet --hash --sign