Merge pull request #3968 from gudnimg/cmake-echo-windows
Fix an issue with using echo on Windows
This commit is contained in:
commit
51374965e4
|
|
@ -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})
|
||||
|
|
|
|||
|
|
@ -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
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue