Update cmake coverage module

This commit is contained in:
Ricardo Montañana Gómez 2025-01-09 10:10:01 +01:00
parent a4329f5f9d
commit 18c79f6d48
Signed by: rmontanana
GPG Key ID: 46064262FD9A7ADE
2 changed files with 7 additions and 2 deletions

View File

@ -137,7 +137,7 @@
include(CMakeParseArguments)
option(CODE_COVERAGE_VERBOSE "Verbose information" FALSE)
option(CODE_COVERAGE_VERBOSE "Verbose information" TRUE)
# Check prereqs
find_program( GCOV_PATH gcov )
@ -160,7 +160,11 @@ foreach(LANG ${LANGUAGES})
endif()
elseif(NOT "${CMAKE_${LANG}_COMPILER_ID}" MATCHES "GNU"
AND NOT "${CMAKE_${LANG}_COMPILER_ID}" MATCHES "(LLVM)?[Ff]lang")
message(FATAL_ERROR "Compiler is not GNU or Flang! Aborting...")
if ("${LANG}" MATCHES "CUDA")
message(STATUS "Ignoring CUDA")
else()
message(FATAL_ERROR "Compiler is not GNU or Flang! Aborting...")
endif()
endif()
endforeach()

1
tests/lib/catch2 Submodule

@ -0,0 +1 @@
Subproject commit 4e8d92bf02f7d1c8006a0e7a5ecabd8e62d98502