aboutsummaryrefslogtreecommitdiffstats
path: root/qbs-resources
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2017-05-31 16:39:29 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2017-05-31 15:16:32 +0000
commit86dc8ebe896c0e97b46b98420cd28c8498d50efc (patch)
tree1c44d5c5795d8aeb417626cf5b122f82fe3f2900 /qbs-resources
parent8b290dbb640a69c7c68d22e26f7d49f8deae4f3b (diff)
qbs build: Make use of version check capabilities in Depends item
This makes for much better feedback to the user in case of an outdated Qt version. Change-Id: I2223ea35f618ed06a6eb2f01916c1a85cec009cc Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Diffstat (limited to 'qbs-resources')
-rw-r--r--qbs-resources/imports/QbsProduct.qbs4
1 files changed, 1 insertions, 3 deletions
diff --git a/qbs-resources/imports/QbsProduct.qbs b/qbs-resources/imports/QbsProduct.qbs
index 5fb0bed1e..cd4fdf437 100644
--- a/qbs-resources/imports/QbsProduct.qbs
+++ b/qbs-resources/imports/QbsProduct.qbs
@@ -1,9 +1,8 @@
import qbs
-import qbs.Utilities
Product {
Depends { name: "qbsbuildconfig" }
- Depends { name: "Qt.core" }
+ Depends { name: "Qt.core"; versionAtLeast: minimumQtVersion }
property string minimumQtVersion: "5.6.0"
property bool install: true
cpp.defines: {
@@ -15,5 +14,4 @@ Product {
return res;
}
cpp.enableExceptions: true
- condition: Utilities.versionCompare(Qt.core.version, minimumQtVersion) >= 0
}