summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-12-10 15:28:39 (GMT)
committerBrad King <brad.king@kitware.com>2024-12-10 16:41:26 (GMT)
commite308d1bb880e9761ec2e2c623869bc221d6159ee (patch)
tree8712efb06af3db0ad5341b00b95a8f1143ce18d4 /Source
parentc08543d71196783c754b8b868584dd46ddbeb15c (diff)
downloadCMake-e308d1bb880e9761ec2e2c623869bc221d6159ee.zip
CMake-e308d1bb880e9761ec2e2c623869bc221d6159ee.tar.gz
CMake-e308d1bb880e9761ec2e2c623869bc221d6159ee.tar.bz2
cmGlobalNinjaGenerator: Remove unnecessary local variable
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGlobalNinjaGenerator.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx
index c33da9c..b89ea5c 100644
--- a/Source/cmGlobalNinjaGenerator.cxx
+++ b/Source/cmGlobalNinjaGenerator.cxx
@@ -1639,12 +1639,8 @@ void cmGlobalNinjaGenerator::WriteFolderTargets(std::ostream& os)
build.Outputs.emplace_back();
std::string const buildDirAllTarget =
this->ConvertToNinjaPath(cmStrCat(currentBinaryDir, "/codegen"));
-
- cmNinjaDeps& explicitDeps = build.ExplicitDeps;
-
for (auto const& config : configs) {
- explicitDeps.clear();
-
+ build.ExplicitDeps.clear();
for (DirectoryTarget::Target const& t : dt.Targets) {
if (this->IsExcludedFromAllInConfig(t, config)) {
continue;
@@ -1658,7 +1654,7 @@ void cmGlobalNinjaGenerator::WriteFolderTargets(std::ostream& os)
auto const& outputs = cc->GetOutputs();
std::transform(outputs.begin(), outputs.end(),
- std::back_inserter(explicitDeps),
+ std::back_inserter(build.ExplicitDeps),
this->MapToNinjaPath());
}
}