cmake: Cleanup the final dual-language hex

List the file as a byproduct of the rule for correct cleanup.
This commit is contained in:
Yuri D'Elia 2022-10-04 00:18:14 +02:00
parent 96a2c9cb4a
commit 0dbf08b8db
1 changed files with 1 additions and 0 deletions

View File

@ -498,6 +498,7 @@ function(fw_add_variant variant_name)
OUTPUT ${FW_LANG_FINAL}.hex
COMMAND ${CMAKE_OBJCOPY} -I binary -O ihex ${FW_LANG_FINAL}.bin ${FW_LANG_FINAL}.hex
COMMAND ${CMAKE_COMMAND} -E copy ${FW_LANG_FINAL}.hex ${LANG_HEX}
BYPRODUCTS ${LANG_HEX}
DEPENDS ${FW_LANG_FINAL}.bin
COMMENT "Creating ${FW_LANG_FINAL}.hex"
)