diff options
author | Brad King <brad.king@kitware.com> | 2023-12-20 14:08:41 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-12-20 14:08:53 (GMT) |
commit | 5c1990fc5187884724a3fcc703051805bb97b99e (patch) | |
tree | df289f160364503a5c8a68147a96c9d8b9903f1d /Source | |
parent | c0ab85915434c86fee562e0b06e9986bc5288ea6 (diff) | |
parent | d31b48816c4f01b4338a6044aa8f0d3575e19f70 (diff) | |
download | CMake-5c1990fc5187884724a3fcc703051805bb97b99e.zip CMake-5c1990fc5187884724a3fcc703051805bb97b99e.tar.gz CMake-5c1990fc5187884724a3fcc703051805bb97b99e.tar.bz2 |
Merge topic 'swift-CMP0157-old'
d31b48816c Swift/Ninja: Fix missing OFM in CMP0157 OLD behavior
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9089
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmNinjaTargetGenerator.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx index 732593f..2cb1284 100644 --- a/Source/cmNinjaTargetGenerator.cxx +++ b/Source/cmNinjaTargetGenerator.cxx @@ -1142,7 +1142,8 @@ void cmNinjaTargetGenerator::WriteObjectBuildStatements( std::vector<cmSourceFile const*> swiftSources; for (cmSourceFile const* sf : objectSources) { - if (sf->GetLanguage() == "Swift") { + if (this->GetLocalGenerator()->IsSplitSwiftBuild() && + sf->GetLanguage() == "Swift") { swiftSources.push_back(sf); } else { this->WriteObjectBuildStatement(sf, config, fileConfig, |