Fix build against Qt 6.10

Since Qt 6.10, private APIs are now gated behind their own package
components. To make the build work again, we need to add QmlPrivate as
a required component, as QtCoro relies on it.

See https://doc.qt.io/qt-6/whatsnew610.html#build-system-changes

Closes https://github.com/WiVRn/WiVRn/issues/556

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu
2025-10-26 21:02:57 +01:00
committed by xytovl
parent 7bf9bac094
commit 2204fdd396
+5
View File
@@ -157,6 +157,11 @@ endif()
if (WIVRN_BUILD_DASHBOARD)
find_package(Qt6 REQUIRED COMPONENTS Core Quick Test Gui QuickControls2 Widgets Network)
if(Qt6_VERSION VERSION_GREATER_EQUAL 6.10.0)
# QtCoro needs this for Qt 6.10 and (currently) doesn't do this by itself
find_package(Qt6 REQUIRED COMPONENTS QmlPrivate)
endif()
find_package(ECM 5.115 REQUIRED NO_MODULE)
list(APPEND CMAKE_MODULE_PATH "${ECM_MODULE_PATH}")