Skip to content

Commit

Permalink
Update lessThan check v2
Browse files Browse the repository at this point in the history
Previous version failed if qt was version 6+. Not sure how backwards
compatible if at all this app will be, but I'm gonna take a chance.
  • Loading branch information
jplsek committed Jan 9, 2018
1 parent 3c01b84 commit cc47702
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions puush-qt.pri
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit cc47702

Please sign in to comment.