summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-11-05 16:24:10 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-11-05 16:24:55 (GMT)
commit13ea5f06fad9bd9645cf4fb768e476dd7a053dd1 (patch)
tree96cc54679a2d0cca30793b66d9f5a16499638fd2 /Source/cmLocalGenerator.cxx
parent3521e3d524447f0f3ac20f8e2df2435dd6de7aa2 (diff)
parente331367a898c6e0afa386c52fc7bd4d84d75ec29 (diff)
downloadCMake-13ea5f06fad9bd9645cf4fb768e476dd7a053dd1.zip
CMake-13ea5f06fad9bd9645cf4fb768e476dd7a053dd1.tar.gz
CMake-13ea5f06fad9bd9645cf4fb768e476dd7a053dd1.tar.bz2
Merge topic 'objc-pch'
e331367a89 PCH: Add support for OBJC/OBJCXX languages Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3983
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 8879040..acf104b 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -2266,7 +2266,7 @@ void cmLocalGenerator::AddPchDependencies(cmGeneratorTarget* target)
std::vector<cmSourceFile*> sources;
target->GetSourceFiles(sources, buildType);
- for (const std::string& lang : { "C", "CXX" }) {
+ for (const std::string& lang : { "C", "CXX", "OBJC", "OBJCXX" }) {
auto langSources =
std::count_if(sources.begin(), sources.end(), [lang](cmSourceFile* sf) {
return lang == sf->GetLanguage() &&