summarylogtreecommitdiffstats
path: root/0013-Fix-errors-due-to-disabled-exceptions-with-cpp_winrt.patch
blob: 42bde496d8b30612705ea27ca06421a2abcab1a8 (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
From 4c0319dc229bec434f0ac6df9eff6826d3d06f91 Mon Sep 17 00:00:00 2001
From: Martchus <martchus@gmx.net>
Date: Sat, 17 Feb 2024 20:31:12 +0100
Subject: [PATCH 13/17] Fix errors due to disabled exceptions with cpp_winrt
 support

The winrt headers use exceptions so code using them must be compiled
with exceptions enabled.

Change-Id: I216f65b260062ff2020f8a288ddda78c3e9fc3c9
---
 src/plugins/platforms/windows/CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/plugins/platforms/windows/CMakeLists.txt b/src/plugins/platforms/windows/CMakeLists.txt
index ea119bfb1e2..4cc9b87ced7 100644
--- a/src/plugins/platforms/windows/CMakeLists.txt
+++ b/src/plugins/platforms/windows/CMakeLists.txt
@@ -9,6 +9,7 @@ qt_internal_add_plugin(QWindowsIntegrationPlugin
     OUTPUT_NAME qwindows
     PLUGIN_TYPE platforms
     DEFAULT_IF ${QT_QPA_DEFAULT_PLATFORM} MATCHES windows
+    EXCEPTIONS
     SOURCES
         main.cpp
         qtwindowsglobal.h
-- 
2.44.0