aboutsummaryrefslogtreecommitdiffstats
path: root/qtcreator.pro
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-05-06 16:38:58 +0200
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-05-06 20:25:20 +0200
commit5562f71df6fbc27307cf65d114c59f5b29ce0ad9 (patch)
tree0d151f3f42eb4fdb20003c6ade5b914c05c43280 /qtcreator.pro
parente3885f280bc6b7d733cde47c490b275cac1ddcc4 (diff)
simplify version check
Diffstat (limited to 'qtcreator.pro')
-rw-r--r--qtcreator.pro5
1 files changed, 2 insertions, 3 deletions
diff --git a/qtcreator.pro b/qtcreator.pro
index d6ee4e6036..7480776c2e 100644
--- a/qtcreator.pro
+++ b/qtcreator.pro
@@ -1,7 +1,6 @@
#version check qt
-TOO_OLD_LIST=$$find(QT_VERSION, ^4\.[0-4])
-count(TOO_OLD_LIST, 1) {
- message("Cannot build the Qt Creator with a Qt version that old:" $$QT_VERSION)
+contains(QT_VERSION, ^4\.[0-4]\..*) {
+ message("Cannot build Qt Creator with Qt version $$QT_VERSION.")
error("Use at least Qt 4.5.")
}