[cmake-developers] [CMake 0015813]: add_custom_command(COMMENT) force a newline in ninja printout

Mantis Bug Tracker mantis at public.kitware.com
Tue Oct 27 15:47:43 EDT 2015


The following issue has been SUBMITTED. 
====================================================================== 
https://public.kitware.com/Bug/view.php?id=15813 
====================================================================== 
Reported By:                Chris Green
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15813
Category:                   CMake
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-10-27 15:47 EDT
Last Modified:              2015-10-27 15:47 EDT
====================================================================== 
Summary:                    add_custom_command(COMMENT) force a newline in ninja
printout
Description: 
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.

Steps to Reproduce: 
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.

Additional Information: 
This behavior was observed with ninja 1.6.0.

This behavior has not been tested with add_custom_target(COMMENT ...).
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-10-27 15:47 Chris Green    New Issue                                    
======================================================================



More information about the cmake-developers mailing list