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)