CMake Build: Fix iOS build with PCH and CMake 3.18.3

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.

Change-Id: I230f16ee59f2c524a30d41a487093343272722d1
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
bb10
Cristian Adam 2020-08-27 21:05:09 +02:00
parent 8bcab6d43f
commit d9d137c8f3
1 changed files with 8 additions and 0 deletions

View File

@ -21,6 +21,14 @@ qt_internal_add_plugin(QIosOptionalPlugin_NSPhotoLibrary
Qt::GuiPrivate
)
# special case begin
set_target_properties(QIosOptionalPlugin_NSPhotoLibrary
PROPERTIES
DISABLE_PRECOMPILE_HEADERS ON
)
# special case end
#### Keys ignored in scope 1:.:.:nsphotolibrarysupport.pro:<TRUE>:
# OTHER_FILES = "plugin.json"
# PLUGIN_EXTENDS = "-"