CMake: Fix build of plugins/styles/mac using PCH

If a target inherits precompile headers from a different target
that has more languages enabled (CXX, OBJCXX), the target will
depend on PCH artifacts for a language that is not actually
present.

Ammends d9d137c8f3

Fixes: QTBUG-88609
Pick-to: 6.0.0 6.0
Change-Id: I9735317e634b62732df0fce84fe7cf229cfdea1b
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
bb10
Cristian Adam 2020-11-19 16:31:31 +01:00 committed by Alexandru Croitor
parent 98e6234bd4
commit e395cbb43d
1 changed files with 7 additions and 0 deletions

View File

@ -21,3 +21,10 @@ qt_internal_add_plugin(QMacStylePlugin
#### Keys ignored in scope 1:.:.:mac.pro:<TRUE>:
# DISTFILES = "macstyle.json"
# special case begin
set_target_properties(QMacStylePlugin
PROPERTIES
DISABLE_PRECOMPILE_HEADERS ON
)
# special case end