diff options
Diffstat (limited to 'tools/qmltime')
-rw-r--r-- | tools/qmltime/CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/qmltime/CMakeLists.txt b/tools/qmltime/CMakeLists.txt index b119325471..1486885e33 100644 --- a/tools/qmltime/CMakeLists.txt +++ b/tools/qmltime/CMakeLists.txt @@ -25,9 +25,14 @@ qt_internal_add_tool(${target_name} ## Scopes: ##################################################################### +# Don't set properties on a host tool when cross compiling, because it +# is not being built. +if(NOT CMAKE_CROSSCOMPILING OR QT_BUILD_TOOLS_WHEN_CROSSCOMPILING) + set_target_properties(${target_name} PROPERTIES QT_QML_MODULE_VERSION 1.0 QT_QML_MODULE_URI QmlTime ) - qt6_qml_type_registration(${target_name}) +endif() + |