diff --git a/puush-qt.pri b/puush-qt.pri index a5eb0b9..7ec2cde 100644 --- a/puush-qt.pri +++ b/puush-qt.pri @@ -1,8 +1,12 @@ # qt-5.7 is needed because of "qt-quick control 2". -# can't use QT_VERSION, because lessThan can't handle decimals (5.10) +# can't use QT_VERSION, because lessThan is for integers 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}) +lessThan(QT_MAJOR_VERSION, 5) { + error($${MIN_MESSAGE}) +} +equals(QT_MAJOR_VERSION, 5):lessThan(QT_MINOR_VERSION, 7) { + error($${MIN_MESSAGE}) +} QMAKE_CXXFLAGS += -std=c++11