summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalNinjaGenerator.cxx
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-05-30 15:22:56 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2019-05-30 16:38:21 (GMT)
commitdf06c8d7921d09a2a627731866a8ce895990067b (patch)
tree4756b7d720c7ad68854e2bc246f21ad18d1a83ac /Source/cmGlobalNinjaGenerator.cxx
parent409922f695df4fc885d04338f56dcfb4dc406f7d (diff)
downloadCMake-df06c8d7921d09a2a627731866a8ce895990067b.zip
CMake-df06c8d7921d09a2a627731866a8ce895990067b.tar.gz
CMake-df06c8d7921d09a2a627731866a8ce895990067b.tar.bz2
Ninja: Use cmNinjaBuild class for WriteBuild
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.cxx')
-rw-r--r--Source/cmGlobalNinjaGenerator.cxx13
1 files changed, 6 insertions, 7 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx
index c6e4be4..ed604d9 100644
--- a/Source/cmGlobalNinjaGenerator.cxx
+++ b/Source/cmGlobalNinjaGenerator.cxx
@@ -1562,13 +1562,12 @@ void cmGlobalNinjaGenerator::WriteTargetHelp(std::ostream& os)
rule.Comment = "Rule for printing all primary targets available.";
WriteRule(*this->RulesFileStream, rule);
}
- WriteBuild(os, "Print all primary targets available.", "HELP",
- /*outputs=*/cmNinjaDeps(1, this->NinjaOutputPath("help")),
- /*implicitOuts=*/cmNinjaDeps(),
- /*explicitDeps=*/cmNinjaDeps(),
- /*implicitDeps=*/cmNinjaDeps(),
- /*orderOnlyDeps=*/cmNinjaDeps(),
- /*variables=*/cmNinjaVars());
+ {
+ cmNinjaBuild build("HELP");
+ build.Comment = "Print all primary targets available.";
+ build.Outputs.push_back(this->NinjaOutputPath("help"));
+ WriteBuild(os, build);
+ }
}
void cmGlobalNinjaGenerator::InitOutputPathPrefix()