CMake: Fix build of QJpegPlugin in static Windows build with PCH
Fails with
C:\Dev\qt\src\qtbase\src\3rdparty\libjpeg\src\jmorecfg.h(242): error
C2371: 'boolean': redefinition; different basic types
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\rpcndr.h(193): note: see
declaration of 'boolean'
Don't use the precompiled header for the plugin source file.
Amends f641a0dbcf
Pick-to: 6.1
Task-number: QTBUG-88093
Change-Id: I6a57f791139d866622f7406fec45c11be6b86418
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
bb10
parent
41af29238c
commit
2e2ef31d41
|
|
@ -19,6 +19,13 @@ qt_internal_add_plugin(QJpegPlugin
|
|||
Qt::GuiPrivate
|
||||
)
|
||||
|
||||
# Fails to build on Windows with a static Qt, PCH enabled and
|
||||
# the vendored libjpeg sources, due to 'boolean'
|
||||
# redefinition in jmorecfg.h and rpcndr.h.
|
||||
if(WIN32 AND NOT BUILD_SHARED_LIBS)
|
||||
qt_update_ignore_pch_source(QJpegPlugin "qjpeghandler.cpp")
|
||||
endif()
|
||||
|
||||
#### Keys ignored in scope 1:.:.:jpeg.pro:<TRUE>:
|
||||
# OTHER_FILES = "jpeg.json"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue