From 68b5c5aeb11fd322c49eb6abe21118c552ea7892 Mon Sep 17 00:00:00 2001 From: Beata Baranowska Date: Thu, 27 Oct 2016 11:35:44 +0200 Subject: [PATCH] remove Coverage 2 options into one --coverage --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 463f45fc4..c29a8e3cd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -106,8 +106,8 @@ include(ctest/CMakeLists.txt) # Since there is no directory-wide property for linker flags, we can't use # set_property for the link-time coverage flags. if(COVERAGE) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-arcs -ftest-coverage") - set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fprofile-arcs -ftest-coverage") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage") + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} --coverage") endif() add_subdirectory(xmlserializer)