Fixed size command options

This commit is contained in:
jakeg00dwin 2025-02-14 13:03:54 -08:00
parent 691057a163
commit 2c78ea4130
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ set_target_properties(${PROJECT_NAME} PROPERTIES SUFFIX ".elf")
if(NOT TARGET size) if(NOT TARGET size)
# Set the size utility to display the size of the final binary # Set the size utility to display the size of the final binary
add_custom_target(size ALL add_custom_target(size ALL
COMMAND ${CMAKE_SIZE} --format=avr --mcu=${AVR_MCU} ${CMAKE_PROJECT_NAME}.elf COMMAND ${CMAKE_SIZE} -G --target=elf32-avr ${CMAKE_PROJECT_NAME}.elf
DEPENDS ${CMAKE_PROJECT_NAME}.elf DEPENDS ${CMAKE_PROJECT_NAME}.elf
) )
endif() endif()