[CMake] Run compiler through another tool?

Michael Hertling mhertling at online.de
Wed Nov 17 08:21:04 EST 2010


On 11/17/2010 10:37 AM, Hariharan wrote:
> Is it possible to run the compiler and linker through another command, say
> "time" or a custom script? In other words, I want the compile and link steps
> to run "<command> gcc" and "<command> ld".

If you're using a Makefile generator you might have a look at the rule
launchers, i.e. the RULE_LAUNCH_{COMPILE_CUSTOM,LINK} global/target/
directory properties.

Regards,

Michael


More information about the CMake mailing list