summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2021-09-27 13:37:12 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2021-10-11 21:10:12 +0200
commit9a6589369a0c6bfff31ef644f70bb54fd22ba17c (patch)
treef6d4fc5b471f284cc06c54adbdcb081ca74a5dbf /src
parent0fde0da27cd8541199741010eaf9ad3bac6d3f1b (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: If43de0acd45b53032cae25ce0062c390e3f7abf2 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/core/tools/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/tools/CMakeLists.txt b/src/core/tools/CMakeLists.txt
index e16bfb926..5297bb509 100644
--- a/src/core/tools/CMakeLists.txt
+++ b/src/core/tools/CMakeLists.txt
@@ -11,6 +11,7 @@ if(QT_FEATURE_webengine_spellchecker)
TOOLS_TARGET WebEngineCore
SOURCES main.cpp
)
+ qt_internal_return_unless_building_tools()
qt_skip_warnings_are_errors(${dict_target_name})
add_dependencies(${dict_target_name} WebEngineCore)
qt_internal_extend_target(${dict_target_name} CONDITION WIN32