From 41b5afbb0e3fecc35bbbe48fe59455b742105a54 Mon Sep 17 00:00:00 2001 From: Sebastian Kuzminsky Date: Thu, 23 May 2024 10:55:19 -0600 Subject: [PATCH] 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). --- SavvyCAN.pro | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SavvyCAN.pro b/SavvyCAN.pro index 5512e42..ceb0aae 100644 --- a/SavvyCAN.pro +++ b/SavvyCAN.pro @@ -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