[CMake] How to generate compiler error files with CMake

Bill Hoffman bill.hoffman at kitware.com
Tue Jan 15 08:42:12 EST 2008


Dieter Oberkofler wrote:
> When compiling an individual file (file.cpp), I would like to have an error
> file (file.err) containing all errors generated during the compilation.
> Is there an easy way to generate a compiler error file (next to the stdout)
> for each individual file compiled using CMake?
> Thankk you,
> Dieter
> 
> 
There is no easy way to do this with CMake.  With makefiles, you might 
be able to replace the compiler with a shell script that does this. 
But, it would not work with visual studio or xcode projects.

-Bill


More information about the CMake mailing list