Skip to content
  • David Cole's avatar
    CTest: Add COVERAGE_EXTRA_FLAGS cache variable (#12490) · 2f309cba
    David Cole authored
    COVERAGE_EXTRA_FLAGS is a space separated value of extra flags
    that will be passed to gcov when ctest's coverage handler invokes
    gcov to do coverage analysis.
    
    Map to CoverageExtraFlags in the CTest ini file. Use default value
    of "-l" to match the coverage handler's earlier behavior from ctest
    2.8.4 and earlier. The fix for related issue #11717 had added a " -p"
    which was the cause of both #12415 and #12490. Here, we revert that
    change to the default value, so -p is no longer there by default.
    The people that care to add -p may do so in their own build trees
    by appending " -p" to the new cache variable COVERAGE_EXTRA_FLAGS.
    2f309cba