fix(build): coverage custom target is broken for other projects
Description
Coverage custom target is broken for other projects:
CMake Error at /xxx/xxx/.install.sight/lib/cmake/sight/build/flags.cmake:156 (add_custom_target):
add_custom_target cannot create target "coverage" because another target
with the same name already exists. The existing target is a custom target
created in source directory
Steps to reproduce
Build another project that use Sight
Proposal
Prefix with the current project name
in sight/cmake/build/flags.cmake
prefix with ${PROJECT_NAME}
:
add_custom_target(
${PROJECT_NAME}_coverage
Functional specifications
nothing should change but the target name:
ninja sight_coverage