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
IMPORTED and ALIAS targets cannot be add to coverage.
Also, in old project where PUBLIC, PRIVATE or INTERFACE visibility
was not specified on target, there is option PLAIN which do not
set any for compile and link (this requires PUBLIC) option.
# PUBLIC - Sets the visibility for added compile options to targets to PUBLIC instead of the default of PRIVATE.
251
273
# INTERFACE - Sets the visibility for added compile options to targets to INTERFACE instead of the default of PRIVATE.
274
+
# PLAIN - Do not set any target visibility (backward compatibility with old cmake projects)
252
275
# AUTO - Adds the target to the 'ccov' target so that it can be run in a batch with others easily. Effective on executable targets.
253
276
# ALL - Adds the target to the 'ccov-all' and 'ccov-all-report' targets, which merge several executable targets coverage data to a single report. Effective on executable targets.
254
277
# EXTERNAL - For GCC's lcov, allows the profiling of 'external' files from the processing directory
@@ -259,7 +282,7 @@ endif()
259
282
# ~~~
260
283
function(target_code_coverage TARGET_NAME)
261
284
# Argument parsing
262
-
set(options AUTO ALL EXTERNAL PUBLICINTERFACE)
285
+
set(options AUTO ALL EXTERNAL PUBLICINTERFACE PLAIN)
0 commit comments