armcc, armasm, armlink etc has command line option "--errors=file" to redirect diagnostic output messages to a file instead of stdout.
This always overwrites the logfile.
Other compilers have the possibility to append to logfiles.
We are using CMake to build also for other platforms and have no simple way to redirect stdout or have unique lognames for that matter.
Compile warnings etc are therefor printed to the console, mixed with license messages and progress.
We need to parse the compile output as some supplier source cannot be changed (and setting up CMake to set special options for certain files is a complicated solution).
Any solution to append to the logfile?
/Gerhard
ARM DS-5 5.14 (ARM compiler 5.03)
I haven''t tried this but you should be able to direct the error output to append to a file on the command line
Microsoft Corporation - Using command redirection operators
2>>error file
I'm not sure about this idea in general as one might want make to compile files in parallel - make does something special about saving up messages and not interspersing them to avoid problems so your method might be best.
It is not possible to configure CMake to append that way.
Basically what I did was to write to individual files, append them in a separate step after compiling.
ninja has a concept with pools that prevents interleaving outputs, but there is no way to configure temporary files like this.