Commit 82c405c4 authored by Brad King's avatar Brad King 💬 Committed by Kitware Robot
Browse files

Merge topic 'branch_coverage_working_dir'

c5ff34cc CTestCoverageCollectGCOV: specify base dir for GLOB_RECURSE
parents 7d5a0f5f c5ff34cc
......@@ -104,11 +104,11 @@ function(ctest_coverage_collect_gcov)
set(gcda_files)
set(label_files)
if (GCOV_GLOB)
file(GLOB_RECURSE gfiles RELATIVE ${binary_dir} "*.gcda")
file(GLOB_RECURSE gfiles RELATIVE ${binary_dir} "${binary_dir}/*.gcda")
list(LENGTH gfiles len)
# if we have gcda files then also grab the labels file for that target
if(${len} GREATER 0)
file(GLOB_RECURSE lfiles RELATIVE ${binary_dir} "Labels.json")
file(GLOB_RECURSE lfiles RELATIVE ${binary_dir} "${binary_dir}/Labels.json")
list(APPEND gcda_files ${gfiles})
list(APPEND label_files ${lfiles})
endif()
......
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