From 407ed344dadec77ae8ddb976a8ab1acfedcdb86d Mon Sep 17 00:00:00 2001 From: Sami Shalayel Date: Thu, 16 Mar 2023 13:30:52 +0100 Subject: tst_qmllint: add dependencies Add qmljsrootgen and qmllint as dependencies to tst_qmllint, to make sure that tst_qmllint always run with an up-tp-date version of the tools it tests. Change-Id: Ia0091c7967b4bf93ff194eb83f92cfcfcf35f48e Reviewed-by: Fabian Kosmale --- tests/auto/qml/qmllint/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') diff --git a/tests/auto/qml/qmllint/CMakeLists.txt b/tests/auto/qml/qmllint/CMakeLists.txt index 422e7a08b3..4d85c28ced 100644 --- a/tests/auto/qml/qmllint/CMakeLists.txt +++ b/tests/auto/qml/qmllint/CMakeLists.txt @@ -42,9 +42,15 @@ qt_internal_extend_target(tst_qmllint CONDITION NOT ANDROID AND NOT IOS QT_QMLTEST_DATADIR="${CMAKE_CURRENT_SOURCE_DIR}/data" ) +if (TARGET qmllint) + add_dependencies(tst_qmllint Qt::qmllint) +endif() + if (TARGET qmljsrootgen) qt_internal_extend_target(tst_qmllint DEFINES QT_QMLJSROOTGEN_PRESENT ) + + add_dependencies(tst_qmllint Qt::qmljsrootgen) endif() -- cgit v1.2.3