Debian Codegraph @

debian/patches/find-qt6-guiprivate-component

raw
1 From: Boyuan Yang <[email protected]>
2 Subject: Request the Qt6 GuiPrivate CMake component
3
4 src/CMakeLists.txt links the ksnip target against Qt6::GuiPrivate (needed
5 for QtGui/private/qtx11extras_p.h), but that imported target only exists
6 after find_package(Qt6 ... GuiPrivate) has been called. Without it the
7 Qt6 build fails at generate time with "Target ksnip links to Qt6::GuiPrivate
8 but the target was not found".
9
10 Forwarded: no
11 Last-Update: 2026-08-16
12
13 ---
14 --- ksnip-1.10.1+git20260703.e8007559.orig/CMakeLists.txt
15 +++ ksnip-1.10.1+git20260703.e8007559/CMakeLists.txt
16 @@ -59,6 +59,12 @@ if (UNIX AND NOT APPLE)
17 list(APPEND QT_COMPONENTS Concurrent)
18 endif()
19
20 +if (BUILD_WITH_QT6)
21 + # src/ links against Qt6::GuiPrivate (for QtGui/private/qtx11extras_p.h),
22 + # which is only defined once the GuiPrivate component has been requested.
23 + list(APPEND QT_COMPONENTS GuiPrivate)
24 +endif()
25 +
26 if (X11_FOUND AND NOT BUILD_WITH_QT6)
27 list(APPEND QT_COMPONENTS X11Extras)
28 elseif (WIN32)