From 6841d4d15be57a30e8e7265ee3b9cb101404b39f Mon Sep 17 00:00:00 2001 From: will-v-pi <108662275+will-v-pi@users.noreply.github.com> Date: Fri, 30 May 2025 14:35:25 +0100 Subject: [PATCH] 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 --- tools/CMakeLists.txt | 3 --- 1 file changed, 3 deletions(-) diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 1d98f031..74745af4 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -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} $ $ 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