aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/ecmascripttests
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2021-09-27 13:36:54 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2021-10-08 10:37:35 +0200
commit0d6d3c7bc50e1ab08b66449b7bb9239a97bfed4e (patch)
treeead4dee258c1d2ee6cacdc79cc620be9492e3747 /tests/auto/qml/ecmascripttests
parent49e549934dbd993e9e352a5719f85d1a5475a2f5 (diff)
Skip unnecessary commands when cross-building tools
Call qt_internal_return_unless_building_tools() directly after qt_internal_add_tool() to avoid having to special-case code for when this function only creates imported targets in cross-builds. Task-number: QTBUG-85084 Change-Id: I5c8f2ecdf4936cfd15cb530e896bc4e5b5531620 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'tests/auto/qml/ecmascripttests')
-rw-r--r--tests/auto/qml/ecmascripttests/qjstest/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qml/ecmascripttests/qjstest/CMakeLists.txt b/tests/auto/qml/ecmascripttests/qjstest/CMakeLists.txt
index 4ffaf6c02f..7b815838ae 100644
--- a/tests/auto/qml/ecmascripttests/qjstest/CMakeLists.txt
+++ b/tests/auto/qml/ecmascripttests/qjstest/CMakeLists.txt
@@ -18,6 +18,7 @@ qt_internal_add_tool(${target_name}
Qt::Gui
Qt::QmlPrivate
)
+qt_internal_return_unless_building_tools()
#### Keys ignored in scope 1:.:.:qjstest.pro:<TRUE>:
# QMAKE_TARGET_DESCRIPTION = "Javascript" "test" "runner"