Description: search for private modules with Qt 6.10 Usage of private Qt modules requires a call to `find_package(Qt6 COMPONENTS FooPrivate)` since 6.10. Author: Heiko Becker Origin: upstream, https://github.com/Nheko-Reborn/nheko/commit/af2ca72 Bug-Debian: https://bugs.debian.org/1127886 Last-Update: 2026-02-14 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -247,6 +247,9 @@ # Discover Qt dependencies. # find_package(Qt6 6.5 COMPONENTS Core Widgets Gui LinguistTools Svg Multimedia Qml QuickControls2 REQUIRED) +if (Qt6Qml_VERSION VERSION_GREATER_EQUAL "6.10.0") + find_package(Qt6 REQUIRED COMPONENTS GuiPrivate QmlPrivate) +endif() find_package(Qt6DBus) if(USE_BUNDLED_QTKEYCHAIN)