For example:
set(name example)
add_executable(${name} ${...})
set(customName customTarget)
add_custom_target(${customName} COMMENT "#${customName}"
COMMAND ${CMAKE_COMMAND} -E echo $<TARGET_FILE:${name}>
)
1>#customTarget
<path to build folder>/Debug/example.exe
Is this 1> a bug, intended to redirect it to the standard error?