ci: add clang code coverage check #10

Merged
light7734 merged 12 commits from ci/code_cov into main 2025-07-21 09:37:45 +00:00
Showing only changes of commit aa6967fa40 - Show all commits

View file

@ -16,7 +16,7 @@ endif ()
add_option(ENABLE_LLVM_COVERAGE "Enables the code coverage instrumentation for clang") add_option(ENABLE_LLVM_COVERAGE "Enables the code coverage instrumentation for clang")
if(ENABLE_LLVM_COVERAGE) if(ENABLE_LLVM_COVERAGE)
if (CMAKE_CXX_COMPILER_ID NOT STREQUAL "Clang") if (NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
message(FATAL_ERROR "ENABLE_LLVM_COVERAGE only supports the clang compiler") message(FATAL_ERROR "ENABLE_LLVM_COVERAGE only supports the clang compiler")
endif () endif ()