commit 92ef5dddaa782bd85c612b1da3b395c07e1fa8b8
Author: Juergen Spitzmueller <[email protected]>
Date: Sun Sep 20 09:56:29 2026 +0200
CMake: Fix check for xcb with Qt5 and newer distros
Those do not properly set HAVE_QT5_X11_EXTRAS
---
src/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index b403c8e4d0..66a549603d 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -174,7 +174,7 @@ qt_use_modules(${_lyx} Core Gui ${QtCore5CompatModule})
if(QT_USES_X11)
find_package(X11 REQUIRED)
target_link_libraries(${_lyx} ${X11_X11_LIB}) # we need it because we use
XSendEvent
- if(HAVE_QT5_X11_EXTRAS)
+ if(HAVE_QT5_X11_EXTRAS OR (QT_HAS_X11_EXTRAS AND LYX_USE_QT MATCHES "QT5"))
if (XCB_LIBRARY MATCHES "NOTFOUND")
message(FATAL_ERROR "Need xcb library to use with QT5_X11_EXTRAS")
endif()
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs