On Thursday 25 March 2010 10:09:44 pm Verweij, Arjen wrote:
> 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++.
I'll look to add this. I was worried about how to find out whether the build
uses gcc or g++ (i.e. how do you know what to compare it to?).
> Also I think you get
> better results if you compile using -O0. Optimization will confuse the
> postprocessing.
How do you prevent using some other option? My approach was just to warn
if the build is not a Debug build, with this:
if ( NOT CMAKE_BUILD_TYPE STREQUAL "Debug" )
message( WARNING "Code coverage results with an optimised (non-Debug)
build may be misleading" )
endif ( NOT CMAKE_BUILD_TYPE STREQUAL "Debug" )
Do you have something else?
Brad
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake