summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@qt.io>2020-11-19 16:31:31 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2020-11-20 19:45:56 +0000
commit7e34b7fa4d9e8b0f5d6c5276abd727022c091d8d (patch)
treea2297c6d68dcbb956594807d5850b7eb5018008f /src/plugins
parent22605c27b96ce5a0793f1e2f6de66eb6a295e345 (diff)
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 Change-Id: I9735317e634b62732df0fce84fe7cf229cfdea1b Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit e395cbb43d246abb18f9df45cd32c9fbea686076) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/styles/mac/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
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:<TRUE>:
# DISTFILES = "macstyle.json"
+
+# special case begin
+set_target_properties(QMacStylePlugin
+ PROPERTIES
+ DISABLE_PRECOMPILE_HEADERS ON
+)
+# special case end