MantisBT - CMake
View Issue Details
0015813CMakeCMakepublic2015-10-27 15:472016-06-10 14:31
Chris Green 
Kitware Robot 
normalfeaturealways
closedmoved 
Apple MacOS X10.4.10
CMake 3.3.2 
 
0015813: add_custom_command(COMMENT) force a newline in ninja printout
Under normal circumstances (built-in targets and build commands, for instance), ninja puts out to a terminal a line of the form:

[n/M] <message>

Which is overwritten unless there is output from the command. In the case of a COMMENT message such as COMMENT "Doing important stuff" to an add_custom_command, however, a newline at the end of the message is printed rather than having the next progress message overwrite it.
Add a custom command whose COMMAND produces no output. Attach it to a target with the ALL option activated and then run CMake with the Ninja generator. Activate ninja and watch the progress print behavior. Then, add a COMMENT to the custom command definition and observe the behavior when ninja is rerun.
This behavior was observed with ninja 1.6.0.

This behavior has not been tested with add_custom_target(COMMENT ...).
No tags attached.
Issue History
2015-10-27 15:47Chris GreenNew Issue
2016-06-10 14:29Kitware RobotNote Added: 0042867
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0042867)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.