Explicitly define 5.7 as the minimum required Qt version

This commit is contained in:
Konstantinos Sideris 2017-05-30 14:35:01 +03:00
parent 0f72808858
commit 04ef88bbbb
1 changed files with 7 additions and 0 deletions

View File

@ -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)