Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit ca34fe0

Browse files
authored
Merge pull request #383 from beatabaranowska/test
Changing Coverage option
2 parents 1f63cd0 + 68b5c5a commit ca34fe0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ include(ctest/CMakeLists.txt)
106106
# Since there is no directory-wide property for linker flags, we can't use
107107
# set_property for the link-time coverage flags.
108108
if(COVERAGE)
109-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-arcs -ftest-coverage")
110-
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fprofile-arcs -ftest-coverage")
109+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage")
110+
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} --coverage")
111111
endif()
112112

113113
add_subdirectory(xmlserializer)

0 commit comments

Comments
 (0)