From 3c01b8408ab3dc43ac59124254ff5850d8a21dc4 Mon Sep 17 00:00:00 2001 From: Jeremy Plsek Date: Tue, 9 Jan 2018 08:43:52 -0500 Subject: [PATCH] update lessThan check --- puush-qt.pri | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/puush-qt.pri b/puush-qt.pri index 684ca65..a5eb0b9 100644 --- a/puush-qt.pri +++ b/puush-qt.pri @@ -1,6 +1,9 @@ # qt-5.7 is needed because of "qt-quick control 2". -lessThan(QT_VERSION, 5.7): error("This application requires a minimum verion of Qt 5.7") +# can't use QT_VERSION, because lessThan can't handle decimals (5.10) +MIN_MESSAGE = "This application requires a minimum verion of Qt 5.7" +lessThan(QT_MAJOR_VERSION, 5): error($${MIN_MESSAGE}) +lessThan(QT_MINOR_VERSION, 7): error($${MIN_MESSAGE}) QMAKE_CXXFLAGS += -std=c++11 -include($$PWD/lib/uglobalhotkey/uglobalhotkey.pri) +include($$PWD/lib/uglobalhotkey/uglobalhotkey.pri)