Fix an issue with using echo on Windows

Use built-in echo command in cmake instead to
ensure behavior is the same between different platforms
This commit is contained in:
Guðni Már Gilbert 2023-01-28 16:43:00 +00:00
parent 216b935488
commit d0c3d3c5fd
1 changed files with 1 additions and 1 deletions

View File

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