Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow cmake option for X11 support #192

Open
oniGino opened this issue Apr 17, 2023 · 0 comments
Open

Allow cmake option for X11 support #192

oniGino opened this issue Apr 17, 2023 · 0 comments

Comments

@oniGino
Copy link

oniGino commented Apr 17, 2023

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})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant