View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015813CMakeCMakepublic2015-10-27 15:472016-06-10 14:31
ReporterChris Green 
Assigned ToKitware Robot 
PrioritynormalSeverityfeatureReproducibilityalways
StatusclosedResolutionmoved 
PlatformApple MacOSOS XOS Version10.4.10
Product VersionCMake 3.3.2 
Target VersionFixed in Version 
Summary0015813: add_custom_command(COMMENT) force a newline in ninja printout
DescriptionUnder 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.
Steps To ReproduceAdd 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.
Additional InformationThis behavior was observed with ninja 1.6.0.

This behavior has not been tested with add_custom_target(COMMENT ...).
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0042867)
Kitware Robot (administrator)
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.

 Issue History
Date Modified Username Field Change
2015-10-27 15:47 Chris Green New Issue
2016-06-10 14:29 Kitware Robot Note Added: 0042867
2016-06-10 14:29 Kitware Robot Status new => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:29 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team