From df72f06182f3481fe8929c49578052748d980712 Mon Sep 17 00:00:00 2001 From: Sebastian Holtermann Date: Thu, 30 May 2019 15:11:52 +0200 Subject: Ninja: Use cmNinjaBuild instead of WritePhonyBuild --- Source/cmNinjaTargetGenerator.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx index e878adb..8eb9dbd 100644 --- a/Source/cmNinjaTargetGenerator.cxx +++ b/Source/cmNinjaTargetGenerator.cxx @@ -1164,13 +1164,13 @@ void cmNinjaTargetGenerator::WriteObjectBuildStatement( } if (const char* objectOutputs = source->GetProperty("OBJECT_OUTPUTS")) { - std::vector outputList; - cmSystemTools::ExpandListArgument(objectOutputs, outputList); - std::transform(outputList.begin(), outputList.end(), outputList.begin(), - MapToNinjaPath()); - this->GetGlobalGenerator()->WritePhonyBuild(this->GetBuildFileStream(), - "Additional output files.", - outputList, outputs); + cmNinjaBuild build("phony"); + build.Comment = "Additional output files."; + build.Outputs = cmSystemTools::ExpandedListArgument(objectOutputs); + std::transform(build.Outputs.begin(), build.Outputs.end(), + build.Outputs.begin(), MapToNinjaPath()); + build.ExplicitDeps = std::move(outputs); + this->GetGlobalGenerator()->WriteBuild(this->GetBuildFileStream(), build); } } -- cgit v0.12