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})