From 2c78ea4130db6efd392fc5fa6400446b7dd4bec6 Mon Sep 17 00:00:00 2001 From: jakeg00dwin Date: Fri, 14 Feb 2025 13:03:54 -0800 Subject: [PATCH] Fixed size command options --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 7ec7112..d5581e8 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -8,7 +8,7 @@ set_target_properties(${PROJECT_NAME} PROPERTIES SUFFIX ".elf") if(NOT TARGET size) # Set the size utility to display the size of the final binary 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 ) endif()