[CMake] "cmake --build ." and colors

Gregoire Aujay gaujay at movea.com
Fri May 3 13:46:06 EDT 2013


Hello,

I also found that using cmake --build . with ninja outputs all lines but if I directly use ninja to build it only outputs one line which is very cool (it clears current line before printing the new one if there is no warning/error).

Regards,
Gregoire

From: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On Behalf Of Gregoire Aujay
Sent: vendredi 3 mai 2013 16:39
To: cmake at cmake.org
Subject: [CMake] "cmake --build ." and colors

Hello,

I am wondering if there is any trick to enable colors when running this command:
cmake --build .

The only way I manage to get the colors is to directly use the make program, e.g.:
mingw32-make all


The issue is that I am trying to use a script that runs cmake to build instead of the make program that may change (ninja, mingw-make, make, msvc, etc).


Regards,
Gregoire
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130503/c18c350b/attachment.htm>


More information about the CMake mailing list