ci: fix code coverage (#2512)
This commit is contained in:
parent
26e0ff8a14
commit
b4c12cb77c
2 changed files with 17 additions and 5 deletions
|
|
@ -19,8 +19,8 @@ include_directories("${GTEST_SOURCE_DIR}/googletest/include" "${GTEST_SOURCE_DIR
|
|||
|
||||
# coverage
|
||||
# https://gcovr.com/en/stable/guide/compiling.html#compiler-options
|
||||
set(CMAKE_CXX_FLAGS "-fprofile-arcs -ftest-coverage -O1")
|
||||
set(CMAKE_C_FLAGS "-fprofile-arcs -ftest-coverage -O1")
|
||||
set(CMAKE_CXX_FLAGS "-fprofile-arcs -ftest-coverage -ggdb -O0")
|
||||
set(CMAKE_C_FLAGS "-fprofile-arcs -ftest-coverage -ggdb -O0")
|
||||
|
||||
# if windows
|
||||
if (WIN32)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue