From aca5e375f49b207eacae9afc45902180f2395779 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Fri, 27 Aug 2021 12:16:49 +0200 Subject: [PATCH] Tests: Fix build without ShaderTools Change-Id: Id22a91c440ea08fdab42e864d54587836e043584 Reviewed-by: Alessandro Portale --- tests/auto/tracing/flamegraphview/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) 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"