[CMake] Nice handling of code coverage option?
Verweij, Arjen
VerweijA at tass-safe.com
Thu Mar 25 07:09:44 EDT 2010
Hi Brad,
>-----Original Message-----
>From: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On Behalf
>Of Brad Hards
>Any comments or suggestions on this?
We use gcov and lcov for our C++ code. I think you should take care to make sure you have the same version gcov as gcc/g++. Also I think you get better results if you compile using -O0. Optimization will confuse the postprocessing.
Like you we have a special config option in the build system for it.
Regards,
Arjen
More information about the CMake
mailing list