From e395cbb43d246abb18f9df45cd32c9fbea686076 Mon Sep 17 00:00:00 2001 From: Cristian Adam Date: Thu, 19 Nov 2020 16:31:31 +0100 Subject: [PATCH] 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 d9d137c8f39b8aa77b28b12fcb6f1642ca650291 Fixes: QTBUG-88609 Pick-to: 6.0.0 6.0 Change-Id: I9735317e634b62732df0fce84fe7cf229cfdea1b Reviewed-by: Alexandru Croitor --- src/plugins/styles/mac/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/plugins/styles/mac/CMakeLists.txt b/src/plugins/styles/mac/CMakeLists.txt index 4c4e488d91..ea0c7aee04 100644 --- a/src/plugins/styles/mac/CMakeLists.txt +++ b/src/plugins/styles/mac/CMakeLists.txt @@ -21,3 +21,10 @@ qt_internal_add_plugin(QMacStylePlugin #### Keys ignored in scope 1:.:.:mac.pro:: # DISTFILES = "macstyle.json" + +# special case begin +set_target_properties(QMacStylePlugin + PROPERTIES + DISABLE_PRECOMPILE_HEADERS ON +) +# special case end