Commit a6b370f1 authored by Sebastian Müller's avatar Sebastian Müller 🐈
Browse files

Cmake: fix coverage bug

parent a2a6fe70
......@@ -506,7 +506,7 @@ coverage-gcc73:
# create build folder
- mkdir build && cd build
# run cmake with coverage support
- cmake -DCMAKE_WITH_COVERAGE:STRING=ON ..
- cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_WITH_COVERAGE:STRING=ON ..
# run all check-case for coverage calculation
- make mhm_coverage_CI
# copy the output to a top-level folder
......
......@@ -27,8 +27,8 @@ target_link_libraries(mhm PRIVATE mhm_lib)
# setup coverage with GNU
if(CMAKE_Fortran_COMPILER_ID MATCHES "GNU" AND CMAKE_WITH_COVERAGE)
# compile flags are added with the mhm_lib
include(CodeCoverage)
append_coverage_compiler_flags()
SETUP_TARGET_FOR_COVERAGE_LCOV(NAME mhm_coverage_CI
EXECUTABLE ../CI-scripts/run_cmake_coverage.sh
DEPENDENCIES mhm mhm_lib
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment