From 5216c561107324aa001f937f3c3c82578acbca18 Mon Sep 17 00:00:00 2001 From: Cristian Adam Date: Thu, 15 Oct 2020 12:52:45 +0200 Subject: MinGW: Fix static direct2d plugin build using PCH Ammends 27499d25fb6d5b12ee6f97f5a6bedcde53b2dcee The value used to create the PCHs for _WIN32_WINNT is 0x601, and qwindowspointerhandler.cpp requires for MinGW 0x603. Since the precompile header value cannot be undefined while compiling the source file, it's better not to use the PCH for this particular source file. Change-Id: I2dc10fa11f0a796c2d21d8880e32e911359f1602 Reviewed-by: Alexandru Croitor --- src/plugins/platforms/direct2d/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/plugins/platforms') diff --git a/src/plugins/platforms/direct2d/CMakeLists.txt b/src/plugins/platforms/direct2d/CMakeLists.txt index 9e7304cf15..3d507af070 100644 --- a/src/plugins/platforms/direct2d/CMakeLists.txt +++ b/src/plugins/platforms/direct2d/CMakeLists.txt @@ -275,3 +275,9 @@ qt_internal_extend_target(QWindowsDirect2DIntegrationPlugin CONDITION MINGW AND PUBLIC_LIBRARIES uuid ) + +# begin special case +if (MINGW) + set_source_files_properties(../windows/qwindowspointerhandler.cpp PROPERTIES SKIP_PRECOMPILE_HEADERS ON) +endif() +# end special case -- cgit v1.2.3