I use CMake to generate some makefiles that will compile multiple targets using G++ on Linux. I would like to create some metrics about the compilation such as :
- Time needed to build each target
- G++ warnings and errors
The only solution I came up with so far is to redirect the output of make and parse the whole file but this seems really heavy. I cannot use the G++ flag -fdiagnostics-format=json
feature since I cannot upgrade to GCC-9.
Any suggestions? Thank you very much