CMake: ensure Qt isn't too old

Saves confusing errors for older Linux distros #913.
This commit is contained in:
Campbell Barton 2016-11-13 06:32:27 +11:00
parent 3352eb1099
commit 5bb68e4f5f

View file

@ -148,6 +148,13 @@ find_package(Qt5 REQUIRED
Multimedia
)
set(QT_MINIMUM_VERSION 5.5.0)
if(Qt5Core_VERSION VERSION_LESS QT_MINIMUM_VERSION)
MESSAGE(FATAL_ERROR "Minimum supported Qt version: ${QT_MINIMUM_VERSION}.
Installed version: ${Qt5Core_VERSION}")
endif()
unset(QT_MINIMUM_VERSION)
if(WIN32)
include_directories(
SYSTEM