summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-05-30 15:18:36 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2019-05-30 16:38:20 (GMT)
commit7fd3811400b9b2483d635dbcc1b0bfab268527df (patch)
tree42fd3ffd6e2553552219ef8935c5591dd65e16b1
parent834ec4ebfe982ff75b2a34bac2515d221bc3ab38 (diff)
downloadCMake-7fd3811400b9b2483d635dbcc1b0bfab268527df.zip
CMake-7fd3811400b9b2483d635dbcc1b0bfab268527df.tar.gz
CMake-7fd3811400b9b2483d635dbcc1b0bfab268527df.tar.bz2
Ninja: Use cmNinjaBuild class for WriteBuild
-rw-r--r--Source/cmGlobalNinjaGenerator.cxx13
1 files changed, 4 insertions, 9 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx
index 265fe7d..fb4f41d 100644
--- a/Source/cmGlobalNinjaGenerator.cxx
+++ b/Source/cmGlobalNinjaGenerator.cxx
@@ -1515,16 +1515,11 @@ bool cmGlobalNinjaGenerator::WriteTargetCleanAdditional(std::ostream& os)
// Write build
{
- cmNinjaDeps outputs;
- outputs.emplace_back(
+ cmNinjaBuild build("CLEAN_ADDITIONAL");
+ build.Comment = "Clean additional files.";
+ build.Outputs.push_back(
this->NinjaOutputPath(this->GetAdditionalCleanTargetName()));
- WriteBuild(os, "Clean additional files.", "CLEAN_ADDITIONAL",
- /*outputs=*/outputs,
- /*implicitOuts=*/cmNinjaDeps(),
- /*explicitDeps=*/cmNinjaDeps(),
- /*implicitDeps=*/cmNinjaDeps(),
- /*orderOnlyDeps=*/cmNinjaDeps(),
- /*variables=*/cmNinjaVars());
+ WriteBuild(os, build);
}
// Return success
return true;