make qmake check Qt version

This provides a more helpful compile-time error
message, hopefully preventing issues like #727
(https://github.com/collin80/SavvyCAN/issues/727).
This commit is contained in:
Sebastian Kuzminsky
2024-05-23 10:59:33 -06:00
parent 17d369491d
commit 41b5afbb0e
+4
View File
@@ -4,6 +4,10 @@
#
#-------------------------------------------------
!versionAtLeast(QT_VERSION, 5.14.0) {
error("Current version of Qt ($${QT_VERSION}) is too old, this project requires Qt 5.14 or newer")
}
QT = core gui printsupport qml serialbus serialport widgets help network opengl
CONFIG(release, debug|release):DEFINES += QT_NO_DEBUG_OUTPUT