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. Otherwise one runs into compile errors with mingw-w64 12.0.0 and GCC 14.2.0. Change-Id: I216f65b260062ff2020f8a288ddda78c3e9fc3c9 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
This commit is contained in:
parent
750a0b5ef6
commit
5cabaaecf0
@ -8,6 +8,7 @@
|
||||
qt_internal_add_plugin(QWindowsDirect2DIntegrationPlugin
|
||||
OUTPUT_NAME qdirect2d
|
||||
PLUGIN_TYPE platforms
|
||||
EXCEPTIONS
|
||||
SOURCES
|
||||
../windows/qtwindowsglobal.h
|
||||
../windows/qwin10helpers.cpp ../windows/qwin10helpers.h
|
||||
|
@ -9,6 +9,7 @@ qt_internal_add_plugin(QWindowsIntegrationPlugin
|
||||
OUTPUT_NAME qwindows
|
||||
PLUGIN_TYPE platforms
|
||||
DEFAULT_IF "windows" IN_LIST QT_QPA_PLATFORMS
|
||||
EXCEPTIONS
|
||||
SOURCES
|
||||
main.cpp
|
||||
qtwindowsglobal.h
|
||||
|
Loading…
x
Reference in New Issue
Block a user