Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: coverage for gcovr path #87

Merged
merged 1 commit into from
Apr 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmake/test/Coverage.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -664,13 +664,13 @@ function(add_code_coverage_all_targets)
endif()

foreach(_dir ${arg_INCLUDE_DIRS})
cmake_path(CONVERT ${_dir} TO_NATIVE_PATH_LIST _dir)
cmake_path(CONVERT ${_dir} TO_CMAKE_PATH_LIST _dir)
list(APPEND _include_command "--filter")
list(APPEND _include_command "${_dir}")
endforeach()

foreach(_dir ${arg_EXCLUDE_DIRS})
cmake_path(CONVERT ${_dir} TO_NATIVE_PATH_LIST _dir)
cmake_path(CONVERT ${_dir} TO_CMAKE_PATH_LIST _dir)
# gcovr prefers excludes by relative path
file(RELATIVE_PATH _rel ${CMAKE_SOURCE_DIR} ${_dir})
list(APPEND _exclude_command "--exclude")
Expand Down
Loading