Skip to content

Commit

Permalink
tst_tracing_*: Fix build in certain configurations
Browse files Browse the repository at this point in the history
There are Linux distributions that (at least for building packages)
separate the development packages for the various Qt modules.

So, to find the include <QtQml/qqml.h> 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 <[email protected]>
Reviewed-by: Qt CI Bot <[email protected]>
  • Loading branch information
e4z9 committed Nov 23, 2022
1 parent 0f8613f commit b771608
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/tracing/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}
)
Expand Down

0 comments on commit b771608

Please sign in to comment.