blob: fdc279ec2498eab1996cf023f828384e4ee73187 (
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
34
|
From 1be24843743fec51577d6a6632ce4b4757fee9c2 Mon Sep 17 00:00:00 2001
From: Martchus <martchus@gmx.net>
Date: Sun, 9 Jun 2024 23:28:03 +0200
Subject: [PATCH 17/18] Workaround `Unknown CMake command
"_qt_test_emscripten_version".`
Not sure why `QtPublicWasmToolchainHelpers.cmake` is not included
automatically in my WASM builds; this helps fixing the configuration error
at least.
Change-Id: Id63c90a1f564688849c5bd7193195faa1eb38a0a
---
src/corelib/Qt6WasmMacros.cmake | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/corelib/Qt6WasmMacros.cmake b/src/corelib/Qt6WasmMacros.cmake
index b590d893962..9bdd24b719d 100644
--- a/src/corelib/Qt6WasmMacros.cmake
+++ b/src/corelib/Qt6WasmMacros.cmake
@@ -1,6 +1,11 @@
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause
+# Workaround `Unknown CMake command "_qt_test_emscripten_version".`
+if(NOT COMMAND _qt_test_emscripten_version)
+ include("$ENV{EMSDK}/system/lib/cmake/Qt6/QtPublicWasmToolchainHelpers.cmake")
+endif()
+
# Copy in Qt HTML/JS launch files for apps.
function(_qt_internal_wasm_add_target_helpers target)
--
2.47.1
|