summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosef Weidendorfer <[email protected]>2017-12-08 16:27:32 +0100
committerJosef Weidendorfer <[email protected]>2017-12-08 16:27:32 +0100
commitc41607ac73c0154335f6ae00fc0d2c48b7818c7d (patch)
tree85c57684e6e005e51145a2ab9c5971294105e834
parentdd4e5538788ba678d7850cdea7e2e1328f3d910d (diff)
Fix Qt version check for Qt-only build with qmake
Trying to compile with Qt 5.10 exposes the bug with the old, flawed check.
-rw-r--r--qcg.pro8
1 files changed, 7 insertions, 1 deletions
diff --git a/qcg.pro b/qcg.pro
index fd35105..51ec856 100644
--- a/qcg.pro
+++ b/qcg.pro
@@ -1,9 +1,15 @@
# Build file for QCachegrind using qmake
# This does not require KDE in any way (neither at build nor run time)
-lessThan(QT_VERSION, 5.3) {
+
+lessThan(QT_MAJOR_VERSION, 5) {
error("QCachegrind requires Qt 5.3 or greater")
}
+lessThan(QT_MINOR_VERSION, 3) {
+ error("QCachegrind requires Qt 5.3 or greater")
+}
+
+
TEMPLATE = subdirs
SUBDIRS = cgview qcachegrind