commit 1e1c2ed1d139395b9390d694ec63ca2cbed4c0f0
Author: Stephan Witt <[email protected]>
Date:   Sun Aug 24 21:59:12 2014 +0200

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

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8895d2c..84c86d4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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)

Reply via email to