Skip to content

Commit 3c6f0bf

Browse files
committed
Update CMakeLists.txt
1 parent dd62f0f commit 3c6f0bf

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

CMakeLists.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,7 @@ if (ENABLE_COVERAGE)
273273
)
274274

275275
target_link_libraries(
276-
GameAnalytics
277-
PRIVATE
278-
--coverage
276+
GameAnalytics PRIVATE -fprofile-arcs -ftest-coverage
279277
)
280278

281279
set(covname cov)
@@ -289,7 +287,8 @@ if (ENABLE_COVERAGE)
289287
COMMAND GameAnalyticsUnitTests
290288

291289
# Capturing lcov counters and generating report
292-
COMMAND ${LCOV_PATH} --directory . --capture --output-file ${covname}.info
290+
COMMAND ${LCOV_PATH} --directory . --capture --output-file ${covname}.info --branch-coverage
291+
293292
COMMAND ${LCOV_PATH} --remove ${covname}.info
294293
'${CMAKE_SOURCE_DIR}/source/dependencies/*'
295294
'${CMAKE_SOURCE_DIR}/test/*'

0 commit comments

Comments
 (0)