diff --git a/CMakeLists.txt b/CMakeLists.txt index 5b553fa44..c4625c5cd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -128,7 +128,7 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux" AND GCOV) COMMAND ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} --target test-python COMMAND ctest --output-on-failure COMMAND lcov --no-checksum --directory $ --capture --output-file coverage.info - COMMAND lcov --remove coverage.info '/usr*' --remove coverage.info 'pintools*' --remove coverage.info 'examples*' -o coverage.info + COMMAND lcov --ignore-errors unused --remove coverage.info '/usr*' --remove coverage.info 'pintools*' --remove coverage.info 'examples*' -o coverage.info COMMAND genhtml coverage.info -o coverage COMMAND ${CMAKE_COMMAND} -E echo "-- Report generated in ${CMAKE_CURRENT_BINARY_DIR}/coverage/index.html" )