Cmake build: Use find_package(Qt5X11Extras ...) independent of OS

We need to know, if Qt5 is built over X11 in order to test with
xvkbd, which manipulates XEvents.
Qt5X11Extras is independent of underlying OS.
This commit is contained in:
Kornel Benko 2014-08-23 11:36:24 +02:00
parent f63146c019
commit c2d9a22639

View File

@ -556,9 +556,8 @@ if(LYX_USE_QT MATCHES "QT5")
find_package(Qt5Widgets REQUIRED)
if(APPLE)
find_package(Qt5MacExtras)
elseif(UNIX)
find_package(Qt5X11Extras)
endif()
find_package(Qt5X11Extras QUIET)
set(QTVERSION ${Qt5Core_VERSION})
macro (qt_use_modules)
qt5_use_modules(${ARGN})