From b87efa1cf062f94379bca7aa7a0bc956725e3af1 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Wed, 30 Mar 2016 07:08:27 +0200 Subject: [PATCH] Enforced minimal Qt version. --- CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 734b2c161..f095e5730 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -70,7 +70,7 @@ set(APP_URL_ISSUES_NEW_GITHUB "https://github.com/martinrotter/rssguard/issues/n set(APP_URL_ISSUES_NEW_BITBUCKET "http://bitbucket.org/skunkos/rssguard/issues/new") set(APP_URL_WIKI "https://bitbucket.org/skunkos/rssguard/wiki/Home") set(APP_EMAIL "rotter.martinos@gmail.com") -set(MINIMUM_QT_VERSION 5.6) +set(MINIMUM_QT_VERSION 5.6.0) set(EXE_NAME ${APP_LOW_NAME}) if(APPLE) @@ -228,6 +228,12 @@ else(UNIX) find_package(Qt5 REQUIRED Sql WebEngineCore WebEngineWidgets Widgets Xml XmlPatterns Network LinguistTools PrintSupport) endif(UNIX) +message(STATUS "[${APP_LOW_NAME}] Found Qt version: '${Qt5_VERSION}'.") + +if(Qt5_VERSION VERSION_LESS MINIMUM_QT_VERSION) + message(FATAL_ERROR "[${APP_LOW_NAME}] Installed Qt has lower version than needed. You need at least '${MINIMUM_QT_VERSION}'.") +endif(Qt5_VERSION VERSION_LESS MINIMUM_QT_VERSION) + # Configure QStringBuilder behavior. message(STATUS "[${APP_LOW_NAME}] Enabling fast QString concatenation.")