Skip to content

fails in cmake 3.31 #89

@phlptp

Description

@phlptp

The coverage methods fail in cmake 3.31 due to policy CMP0175

All add_custom_command calls like

add_custom_command(
    TARGET ${Coverage_NAME}
    POST_BUILD
    COMMAND ;
    COMMENT "Cobertura code coverage report saved in ${Coverage_NAME}.xml.")
endfunction() # setup_target_for_coverage_gcovr_xml

generate an error of the form
At least one COMMAND must be given.

These custom commands which seem to be for comment only should be integrated into the TARGET through separate commands or the comment made into a command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions