diff options
author | Cristian Adam <cristian.adam@gmail.com> | 2019-11-03 20:34:39 (GMT) |
---|---|---|
committer | Cristian Adam <cristian.adam@gmail.com> | 2019-11-03 20:34:39 (GMT) |
commit | e331367a898c6e0afa386c52fc7bd4d84d75ec29 (patch) | |
tree | 3ebbba93f49fccd2c7a6d126965e505ff430bcdd /Source/cmLocalGenerator.cxx | |
parent | 91c26b3d387ffd4948ecde38ab2c5f894b7dbe8c (diff) | |
download | CMake-e331367a898c6e0afa386c52fc7bd4d84d75ec29.zip CMake-e331367a898c6e0afa386c52fc7bd4d84d75ec29.tar.gz CMake-e331367a898c6e0afa386c52fc7bd4d84d75ec29.tar.bz2 |
PCH: Add support for OBJC/OBJCXX languages
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index a2eb1b9..00bd8af 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() && |