diff options
author | Cristian Adam <cristian.adam@qt.io> | 2020-11-19 16:31:31 +0100 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-11-20 16:06:38 +0000 |
commit | e395cbb43d246abb18f9df45cd32c9fbea686076 (patch) | |
tree | 681083feb78d346c742f3e46bf60897de5284455 /src/plugins/styles | |
parent | 98e6234bd4a910ab1b3873bafc9da33aab499e2e (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
Pick-to: 6.0.0 6.0
Change-Id: I9735317e634b62732df0fce84fe7cf229cfdea1b
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/plugins/styles')
-rw-r--r-- | src/plugins/styles/mac/CMakeLists.txt | 7 |
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 |