summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-12-20 14:08:41 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-12-20 14:08:53 (GMT)
commit5c1990fc5187884724a3fcc703051805bb97b99e (patch)
treedf289f160364503a5c8a68147a96c9d8b9903f1d /Source
parentc0ab85915434c86fee562e0b06e9986bc5288ea6 (diff)
parentd31b48816c4f01b4338a6044aa8f0d3575e19f70 (diff)
downloadCMake-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.cxx3
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,