Remove obsolete check when configuring coverage with Clang
Building shared and static libraries at the same time has been removed as of version 5 so this message would never be printed and it is not clear anymore what the actual problem was.
This commit is contained in:
parent
5563776061
commit
37c2b920d0
|
@ -518,9 +518,6 @@ if (CLANG_SOURCE_BASED_COVERAGE_ENABLED)
|
|||
if (NOT CMAKE_HOST_UNIX OR NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||
message(FATAL_ERROR "Source-based coverage only available under UNIX with Clang")
|
||||
endif ()
|
||||
if (NOT META_PROJECT_TYPE STREQUAL "application" AND DISABLE_SHARED_LIBS)
|
||||
message(FATAL_ERROR "Source-based coverage not available when only building static libs")
|
||||
endif ()
|
||||
set(CLANG_SOURCE_BASED_COVERAGE_AVAILABLE YES)
|
||||
set(CLANG_SOURCE_BASED_COVERAGE_FLAGS -fprofile-instr-generate -fcoverage-mapping)
|
||||
list(APPEND META_PRIVATE_COMPILE_OPTIONS ${CLANG_SOURCE_BASED_COVERAGE_FLAGS})
|
||||
|
|
Loading…
Reference in New Issue