diff options
author | Marianne Yrjänä <marianne.yrjana@qt.io> | 2021-01-08 16:38:38 +0200 |
---|---|---|
committer | Marianne Yrjänä <marianne.yrjana@qt.io> | 2021-01-15 16:33:10 +0200 |
commit | ad0eaad7a106fcfd538079e6e1d1d5a99e22f71c (patch) | |
tree | 319f399fe64e52cec653ec5370fb8a2acd31415b | |
parent | e26f69e92d315479f3c6162915bdba2c50f6deab (diff) |
Don't set properties on a host tool when cross compiling
Task-number: QTQAINFRA-3768
Change-Id: I2e2491e948e996921c068384012e689ab0762a76
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
-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() + |