summarylogtreecommitdiffstats
path: root/0001-Exclude-qmltime-when-cross-compiling.patch
blob: 90d65ae58efb7747dcf0c9a471a7a41f4ead805a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From 455c63d9f29b7c29ce9dc4294b8a0dfd1477e3c2 Mon Sep 17 00:00:00 2001
From: Martchus <martchus@gmx.net>
Date: Fri, 5 Feb 2021 02:22:45 +0100
Subject: [PATCH] Exclude qmltime when cross compiling

as the build script would attempt to set the property of a target
which does not exist (leading to a configuration error).

This tool seems not really requird and is already disabled when
compiling for Android or when compiling static libraries anyways.
That's likely also why upstream did not notice this problem so far.
---
 tools/CMakeLists.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt
index c37524ac95..939624f123 100644
--- a/tools/CMakeLists.txt
+++ b/tools/CMakeLists.txt
@@ -38,7 +38,9 @@ if(NOT (ANDROID OR WASM OR IOS OR VISIONOS OR rtems))
     endif()
     if(QT_BUILD_SHARED_LIBS AND TARGET Qt::Quick)
         add_subdirectory(qmlscene)
-        add_subdirectory(qmltime)
+        if(NOT CMAKE_CROSSCOMPILING)
+            add_subdirectory(qmltime)
+        endif()
     endif()
     if(QT_BUILD_SHARED_LIBS
         AND QT_FEATURE_process
-- 
2.54.0