CMake: Record QtWaylandScannerTools as a tools package dependency

The change uses new API introduced in qtbase, to register
QtWaylandScannerTools as a tools package dependency, ensuring that
the proper host prefix manipulation is done to find the host package.

This fixes the QEMU CI standalone test building by using the host
qtwaylandscanner.

Task-number: QTBUG-83968
Change-Id: I67facb32e1a1e33197090fde324755c0fc880684
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Alexandru Croitor 2020-09-10 18:47:27 +02:00
parent 9659ddb38a
commit 769bef69c8

View File

@ -126,5 +126,5 @@ qt_extend_target(WaylandClient CONDITION QT_FEATURE_draganddrop
)
# special case begin
qt_record_extra_qt_package_dependency(WaylandClient WaylandScannerTools "")
qt_record_extra_qt_main_tools_package_dependency(WaylandClient WaylandScannerTools "${PROJECT_VERSION}")
# special case end