Skip to content

Commit 5d34cdb

Browse files
committed
Update Test link libraries to include gcov
1 parent 6236dbb commit 5d34cdb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ target_link_libraries(Test ssc splinter)
9292
if (UNIX)
9393
find_package(Threads REQUIRED)
9494
target_link_libraries(Test Threads::Threads ${CMAKE_DL_LIBS})
95+
if(CMAKE_BUILD_TYPE STREQUAL "Debug"
96+
AND ENABLE_COVERAGE)
97+
target_link_libraries(Test PRIVATE gcov)
98+
endif()
9599
endif()
96100

97101

0 commit comments

Comments
 (0)