diff options
author | Brad King <brad.king@kitware.com> | 2024-01-31 14:01:36 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2024-01-31 14:01:45 (GMT) |
commit | 2a008138420b0a2cc867f5d3e47accc7d2fda5e0 (patch) | |
tree | 019a7b2fa05325b311e172e0460f4441604faf3e /Source | |
parent | eb9124bd195817efcc17bf8d5b44d487efa0046b (diff) | |
parent | 77c4d2f9a213f0c6bda0fb78238d621ecbb3676d (diff) | |
download | CMake-2a008138420b0a2cc867f5d3e47accc7d2fda5e0.zip CMake-2a008138420b0a2cc867f5d3e47accc7d2fda5e0.tar.gz CMake-2a008138420b0a2cc867f5d3e47accc7d2fda5e0.tar.bz2 |
Merge topic 'xcode-pch-swift-cxx'
77c4d2f9a2 Xcode: Fix PCH support with Swift & C++
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9203
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index c6bb3df..98d77c6 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -3067,7 +3067,8 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmGeneratorTarget* gtgt, } // Precompile Headers - std::string pchHeader = gtgt->GetPchHeader(configName, llang); + std::string pchHeader = + gtgt->GetPchHeader(configName, langForPreprocessorDefinitions); if (!pchHeader.empty()) { buildSettings->AddAttribute("GCC_PREFIX_HEADER", this->CreateString(pchHeader)); |