From b7716087e12d2c5f0b67d55f84a8a58619bdf900 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Tue, 22 Nov 2022 12:09:16 +0100 Subject: [PATCH] tst_tracing_*: Fix build in certain configurations There are Linux distributions that (at least for building packages) separate the development packages for the various Qt modules. So, to find the include in timelinemodel.h when building the test, a dependency on QtQml is required. Pass the dependency down to everyone depending on the tracing lib. Fixes: QTCREATORBUG-28434 Change-Id: I58a534a9c25f1f6ecfc10a9ce8292b5983cdcbae Reviewed-by: Christian Stenger Reviewed-by: Qt CI Bot --- src/libs/tracing/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/tracing/CMakeLists.txt b/src/libs/tracing/CMakeLists.txt index 3b8eed445a9..c7f59798198 100644 --- a/src/libs/tracing/CMakeLists.txt +++ b/src/libs/tracing/CMakeLists.txt @@ -38,8 +38,8 @@ find_package(Qt6 COMPONENTS ShaderTools QUIET) add_qtc_library(Tracing CONDITION TARGET Qt6::ShaderTools AND TARGET Qt5::Quick FEATURE_INFO - DEPENDS Utils Qt5::Qml Qt5::Quick - PUBLIC_DEPENDS Qt5::Widgets + DEPENDS Utils Qt5::Quick + PUBLIC_DEPENDS Qt5::Widgets Qt5::Qml SOURCES ${TEST_SOURCES} )