Merge pull request #3968 from gudnimg/cmake-echo-windows

Fix an issue with using echo on Windows
This commit is contained in:
Yuri D'Elia 2023-01-28 21:12:42 +01:00 committed by GitHub
commit 51374965e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

View File

@ -306,6 +306,7 @@ function(add_base_binary variant_name)
add_custom_command(
TARGET ${variant_name}
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E echo_append "${variant_name} "
COMMAND ${CMAKE_SIZE_UTIL} -C --mcu=atmega2560 ${variant_name}
)
report_size(${variant_name})

View File

@ -58,7 +58,6 @@ endfunction()
function(report_size target)
add_custom_command(
TARGET ${target} POST_BUILD
COMMAND echo "" # visually separate the output
COMMAND "${CMAKE_SIZE_UTIL}" -B "$<TARGET_FILE:${target}>"
USES_TERMINAL
)