| 1 | Description: search for private modules with Qt 6.10 |
| 2 | Usage of private Qt modules requires a call to |
| 3 | `find_package(Qt6 COMPONENTS FooPrivate)` since 6.10. |
| 4 | Author: Heiko Becker <[email protected]> |
| 5 | Origin: upstream, https://github.com/Nheko-Reborn/nheko/commit/af2ca72 |
| 6 | Bug-Debian: https://bugs.debian.org/1127886 |
| 7 | Last-Update: 2026-02-14 |
| 8 | --- |
| 9 | This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ |
| 10 | --- a/CMakeLists.txt |
| 11 | +++ b/CMakeLists.txt |
| 12 | @@ -247,6 +247,9 @@ |
| 13 | # Discover Qt dependencies. |
| 14 | # |
| 15 | find_package(Qt6 6.5 COMPONENTS Core Widgets Gui LinguistTools Svg Multimedia Qml QuickControls2 REQUIRED) |
| 16 | +if (Qt6Qml_VERSION VERSION_GREATER_EQUAL "6.10.0") |
| 17 | + find_package(Qt6 REQUIRED COMPONENTS GuiPrivate QmlPrivate) |
| 18 | +endif() |
| 19 | find_package(Qt6DBus) |
| 20 | |
| 21 | if(USE_BUNDLED_QTKEYCHAIN) |