[CMake] Disable pretty output

Hendrik Sattler post at hendrik-sattler.de
Mon May 19 16:00:17 EDT 2008


Bill Hoffman schrieb:
>> 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.

Or as usual for such things, he can write a small wrapper script for the 
compiler and do whatever he wants, there:
#!/bin/sh
exec $CC_REAL "$@" | custom_script

HS



More information about the CMake mailing list