diff --git a/src/libs/tracing/CMakeLists.txt b/src/libs/tracing/CMakeLists.txt index e44c9dc57b3..d8970a79623 100644 --- a/src/libs/tracing/CMakeLists.txt +++ b/src/libs/tracing/CMakeLists.txt @@ -43,10 +43,6 @@ if(${Qt5_VERSION} VERSION_LESS "6.2.0") qml/tracing.qrc ) else() # < Qt 6.2 - if (NOT TARGET Tracing) - return() - endif() - add_qtc_library(Tracing FEATURE_INFO DEPENDS Utils Qt5::Qml Qt5::Quick @@ -55,6 +51,10 @@ else() # < Qt 6.2 ${TEST_SOURCES} ) + if (NOT TARGET Tracing) + return() + endif() + set(TRACING_QML_FILES qml/ButtonsBar.qml qml/CategoryLabel.qml