Make coverage an optional dependency.

This commit is contained in:
Roman Telezhynskyi 2024-02-16 17:40:43 +02:00
parent c8ffff6428
commit 0ca7c7b3b5
2 changed files with 3 additions and 3 deletions

View File

@ -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 }
}
}

View File

@ -3,7 +3,7 @@ VApp {
install: false
condition: buildconfig.enableUnitTests
Depends { name: "coverage" }
Depends { name: "coverage"; required: false }
Properties {
condition: qbs.targetOS.contains("macos")