From 0ca7c7b3b5fc3897cee75d2f867add9c0f20f502 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 16 Feb 2024 17:40:43 +0200 Subject: [PATCH] Make coverage an optional dependency. --- qbs/imports/VLib.qbs | 4 ++-- qbs/imports/VTestApp.qbs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qbs/imports/VLib.qbs b/qbs/imports/VLib.qbs index f1f14ca11..3d5eef4dd 100644 --- a/qbs/imports/VLib.qbs +++ b/qbs/imports/VLib.qbs @@ -4,7 +4,7 @@ Library { Depends { name: "buildconfig" } Depends { name: "bundle"; condition: qbs.targetOS.contains("macos") } Depends { name: "cpp" } - Depends { name: "coverage" } + Depends { name: "coverage"; required: false } type: buildconfig.staticBuild ? "staticlibrary" : "dynamiclibrary" @@ -64,6 +64,6 @@ Library { Export { Depends { name: "buildconfig" } - Depends { name: "coverage" } + Depends { name: "coverage"; required: false } } } diff --git a/qbs/imports/VTestApp.qbs b/qbs/imports/VTestApp.qbs index d671af116..6879f4a6c 100644 --- a/qbs/imports/VTestApp.qbs +++ b/qbs/imports/VTestApp.qbs @@ -3,7 +3,7 @@ VApp { install: false condition: buildconfig.enableUnitTests - Depends { name: "coverage" } + Depends { name: "coverage"; required: false } Properties { condition: qbs.targetOS.contains("macos")