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

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to