From 37c2b920d0c3aa520e6fb3aceb1c3003012ff7a9 Mon Sep 17 00:00:00 2001 From: Martchus Date: Mon, 1 Nov 2021 14:10:22 +0100 Subject: [PATCH] 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. --- cmake/modules/BasicConfig.cmake | 3 --- 1 file changed, 3 deletions(-) diff --git a/cmake/modules/BasicConfig.cmake b/cmake/modules/BasicConfig.cmake index ccac823..a6486e8 100644 --- a/cmake/modules/BasicConfig.cmake +++ b/cmake/modules/BasicConfig.cmake @@ -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})