From 5562f71df6fbc27307cf65d114c59f5b29ce0ad9 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen <oswald.buddenhagen@nokia.com> Date: Wed, 6 May 2009 16:38:58 +0200 Subject: [PATCH] simplify version check --- qtcreator.pro | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/qtcreator.pro b/qtcreator.pro index d6ee4e60365..7480776c2e8 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.") } -- GitLab