From c2d9a226396627668aae3ccb43809668dcfedce4 Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Sat, 23 Aug 2014 11:36:24 +0200 Subject: [PATCH] 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. --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 55b83220c5..8895d2cd81 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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})