[CMake] ansi color

Brad King brad.king at kitware.com
Fri Feb 10 10:04:04 EST 2012


On 2/10/2012 3:15 AM, Matt Fair wrote:
> I'd like to be able to pipe cmake output and still have the ansi color
> codes when the output is not TTY, is there a way to do this?

Not currently.  The "isatty" test is hard-coded here:

   http://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/kwsys/Terminal.c;hb=v2.8.7#l181

-Brad


More information about the CMake mailing list