summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2021-09-27 13:37:04 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2021-10-05 11:52:04 +0200
commit615800256f6ddeeb5fc720757bd7d6f06749a561 (patch)
tree41282d22278e904433c98a57e7f760937c5015b8 /tools
parent8968274d498a93d9bafa6e2f7c88edc38f0289e5 (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: I446c902ce6c66e722f9aa8b19aaec670bb065824 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'tools')
-rw-r--r--tools/qscxmlc/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/qscxmlc/CMakeLists.txt b/tools/qscxmlc/CMakeLists.txt
index ea05ad6..f9c1360 100644
--- a/tools/qscxmlc/CMakeLists.txt
+++ b/tools/qscxmlc/CMakeLists.txt
@@ -1,4 +1,3 @@
-
#####################################################################
## qscxmlc Tool:
#####################################################################
@@ -31,6 +30,7 @@ qt_internal_add_tool(${target_name}
LIBRARIES
Qt::CorePrivate
)
+qt_internal_return_unless_building_tools()
set_property(SOURCE ../../src/scxml/qscxmlerror.h PROPERTY SKIP_AUTOMOC ON)
set_property(SOURCE ../../src/scxml/qscxmlcompiler.cpp PROPERTY SKIP_AUTOMOC ON)