From 04ef88bbbb9c1409a446f0741a65765c89d7e11d Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Tue, 30 May 2017 14:35:01 +0300 Subject: [PATCH] Explicitly define 5.7 as the minimum required Qt version --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4b36ad11..d6835e38 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,6 +8,13 @@ find_package(Qt5Widgets REQUIRED) find_package(Qt5Network REQUIRED) find_package(Qt5LinguistTools REQUIRED) +if (Qt5Widgets_FOUND) + if (Qt5Widgets_VERSION VERSION_LESS 5.7.0) + message(STATUS "Qt version ${Qt5Widgets_VERSION}") + message(FATAL_ERROR "Minimum supported Qt5 version is 5.7!") + endif() +endif(Qt5Widgets_FOUND) + set(CMAKE_C_COMPILER gcc) set(CMAKE_CXX_STANDARD 11)