You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In addition to the current ARGS multi-value option which appends options
to the end of an executable call, PRE_ARGS instead prefixes items to the
call, to the end for of:
$PRE_ARGS ccov-* $ARGS
Copy file name to clipboardExpand all lines: code-coverage.cmake
+10-6
Original file line number
Diff line number
Diff line change
@@ -211,13 +211,14 @@ endif()
211
211
# COVERAGE_TARGET_NAME - For executables ONLY, changes the outgoing target name so instead of `ccov-${TARGET_NAME}` it becomes `ccov-${COVERAGE_TARGET_NAME}`.
212
212
# EXCLUDE <PATTERNS> - Excludes files of the patterns provided from coverage. Note that GCC/lcov excludes by glob pattern, and clang/LLVM excludes via regex! **These do not copy to the 'all' targets.**
213
213
# OBJECTS <TARGETS> - For executables ONLY, if the provided targets are shared libraries, adds coverage information to the output
214
-
# ARGS <ARGUMENTS> - For executables ONLY, appends the given arguments to the associated ccov-* executable call
214
+
# PRE_ARGS <ARGUMENTS> - For executables ONLY, prefixes given arguments to the associated ccov-* executable call ($<PRE_ARGS> ccov-*)
215
+
# ARGS <ARGUMENTS> - For executables ONLY, appends the given arguments to the associated ccov-* executable call (ccov-* $<ARGS>)
215
216
# ~~~
216
217
function(target_code_coverage TARGET_NAME)
217
218
# Argument parsing
218
219
set(options AUTO ALL EXTERNAL PUBLICINTERFACE PLAIN)
0 commit comments