diff --git a/tests/auto/tracing/flamegraphview/CMakeLists.txt b/tests/auto/tracing/flamegraphview/CMakeLists.txt index a35961bc524..23f73fde899 100644 --- a/tests/auto/tracing/flamegraphview/CMakeLists.txt +++ b/tests/auto/tracing/flamegraphview/CMakeLists.txt @@ -15,6 +15,10 @@ else() # < Qt 6.2 DEPENDS Tracing Qt5::QuickWidgets Qt5::Quick Utils ) + if (NOT TARGET tst_tracing_flamegraphview) # qt_add_qml_module has no DEPENDS check + return() + endif() + qt_add_qml_module(tst_tracing_flamegraphview URI "QtCreator.TstTracingFlameGraphView" VERSION "1.0"