[CMake] Disable pretty output

Bill Hoffman bill.hoffman at kitware.com
Mon May 19 12:07:37 EDT 2008


David Sveningsson wrote:
> Hi, more newbie questions. The GNU Makefiles generated CMake has some 
> nice colored output, progress etc. However I would like to disable this 
> and see each command that is run (debugging purpose).
> 
There is no way to turn it off.  You can do make VERBOSE=1 to see the 
commands, but they will be mixed with the other stuff as well.

> Also, is there a way to pipe the output when running the compiler to a 
> custom script? Something like this (old makefile):
> 
> $(CC) $(CFLAGS) $< -o $@ 2>&1 | custom_script

You might be able to change the

CMAKE_CXX_COMPILE_OBJECT, CMAKE_C_COMPILE_OBJECT rule variable.  But you 
would want to be very careful and it may not be that portable.


-Bill




More information about the CMake mailing list