From d9d137c8f39b8aa77b28b12fcb6f1642ca650291 Mon Sep 17 00:00:00 2001 From: Cristian Adam Date: Thu, 27 Aug 2020 21:05:09 +0200 Subject: 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 --- .../platforms/ios/optional/nsphotolibrarysupport/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/plugins/platforms') diff --git a/src/plugins/platforms/ios/optional/nsphotolibrarysupport/CMakeLists.txt b/src/plugins/platforms/ios/optional/nsphotolibrarysupport/CMakeLists.txt index 526a053b02..1176e34935 100644 --- a/src/plugins/platforms/ios/optional/nsphotolibrarysupport/CMakeLists.txt +++ b/src/plugins/platforms/ios/optional/nsphotolibrarysupport/CMakeLists.txt @@ -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:: # OTHER_FILES = "plugin.json" # PLUGIN_EXTENDS = "-" -- cgit v1.2.3