adwaita-qt
adwaita-qt copied to clipboard
Allow cmake option for X11 support
Please consider adding an CMake Option to manually enable/disable X11 support, instead of basing decision on if xcb is found or not
here is my patch I use in gentoo to work around this (yes I run entirely in wayland and rarely use X apps, though some libraries still exist as I transition)
--- a/CMakeLists.txt 2021-11-10 02:25:40.000000000 -0800
+++ b/CMakeLists.txt 2022-06-20 10:45:04.075301008 -0700
@@ -6,6 +6,7 @@
set(ADWAITAQT_VERSION "1.4.1")
option(USE_QT6 "Use Qt6 instead of Qt5" OFF)
+option(USE_XCB "Use XCB Bindings for Qt5" ON)
if (USE_QT6)
set(QT_MIN_VERSION "6.2.0")
@@ -38,7 +39,7 @@
Widgets
)
-if (NOT APPLE AND NOT WIN32 AND NOT USE_QT6)
+if (NOT APPLE AND NOT WIN32 AND NOT USE_QT6 AND USE_XCB)
find_package(XCB 1.10 COMPONENTS XCB)
set(ADWAITA_HAVE_X11 ${XCB_FOUND})