bilke / cmake-modules

Additional CMake functionality. Most of the modules are from Ryan Pavlik (https://github.com/rpavlik/cmake-modules)
Boost Software License 1.0
548 stars 213 forks source link

fails in cmake 3.31 #89

Open phlptp opened 2 weeks ago

phlptp commented 2 weeks ago

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.