Qt5MacExtras is required on a Mac; report the version of Qt5

This commit is contained in:
Stephan Witt 2014-08-24 21:59:12 +02:00
parent 5af8238700
commit 1e1c2ed1d1

View File

@ -555,7 +555,7 @@ if(LYX_USE_QT MATCHES "QT5")
if (Qt5Core_FOUND)
find_package(Qt5Widgets REQUIRED)
if(APPLE)
find_package(Qt5MacExtras)
find_package(Qt5MacExtras REQUIRED)
endif()
find_package(Qt5X11Extras QUIET)
set(QTVERSION ${Qt5Core_VERSION})
@ -568,6 +568,7 @@ if(LYX_USE_QT MATCHES "QT5")
macro (qt_wrap_uifiles)
qt5_wrap_ui(${ARGN})
endmacro()
message(STATUS "Found Qt-Version ${QTVERSION}")
endif()
elseif(LYX_USE_QT MATCHES "QT4")
find_package(Qt4 "4.5.0" REQUIRED)