Comment line for custom target has added leading 1>

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?

Can you share more about your build environment? This looks like the way MSBuild prefixes project build output with the ordinal number of the project being built.