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 ====================================================================== -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers