Show a warning for Qt < 5.7

This commit is contained in:
Konstantinos Sideris 2017-05-30 14:44:51 +03:00
parent 04ef88bbbb
commit 83cdd79e08

View file

@ -11,7 +11,7 @@ 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!")
message(WARNING "Minimum supported Qt5 version is 5.7!")
endif()
endif(Qt5Widgets_FOUND)