From 77c364bbbee920106a77a9aaffec6772bb463947 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Del=20Pino?= <stephane.delpino44@gmail.com>
Date: Mon, 26 Oct 2020 13:00:58 +0100
Subject: [PATCH] Fix `fastcov` invocation when zeroing counters

The selected `gcov` binary was not used which could lead to errors
---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index b3a9c70ee..9a71209b5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -371,7 +371,7 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Coverage")
       ALL # in coverage mode we do coverage!
 
       # zero all counters
-      COMMAND ${FASTCOV} -q -z
+      COMMAND ${FASTCOV} -q -z --gcov "${GCOV_BIN}"
 
       # Run tests
       COMMAND ${CMAKE_CTEST_COMMAND}
-- 
GitLab