CMake: ensure Qt isn't too old
Saves confusing errors for older Linux distros #913.
This commit is contained in:
parent
3352eb1099
commit
5bb68e4f5f
1 changed files with 7 additions and 0 deletions
|
@ -148,6 +148,13 @@ find_package(Qt5 REQUIRED
|
||||||
Multimedia
|
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)
|
if(WIN32)
|
||||||
include_directories(
|
include_directories(
|
||||||
SYSTEM
|
SYSTEM
|
||||||
|
|
Loading…
Reference in a new issue