From f76b9c675848cf6f1f5a8e42a203a7d15b2c37ba Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Wed, 9 Oct 2019 01:00:33 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D1=81=D0=BB=D0=BE=D0=B2=D0=B8=D0=B5=20?= =?UTF-8?q?=D0=B4=D0=BB=D1=8F=20=D0=B2=D0=BA=D0=BB=D1=8E=D1=87=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D1=8F=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D0=B8?= =?UTF-8?q?=20=D0=BF=D0=BE=D0=BA=D1=80=D1=8B=D1=82=D0=B8=D1=8F=20=D0=BA?= =?UTF-8?q?=D0=BE=D0=B4=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMLibCodeCoverage.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMLibCodeCoverage.cmake b/CMLibCodeCoverage.cmake index d472b80..528e1e9 100644 --- a/CMLibCodeCoverage.cmake +++ b/CMLibCodeCoverage.cmake @@ -1,7 +1,7 @@ function(add_code_coverage) list(GET ARGN 0 _target) - if(CMAKE_CXX_COMPILER_IS_GCC) + if(ENABLE_CODE_COVERAGE AND CMAKE_CXX_COMPILER_IS_GCC) find_program(LCOV_EXE NAMES lcov) find_program(GENHTML_EXE NAMES genhtml) target_compile_options(${_target} PUBLIC "--coverage")