diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2019-05-30 13:11:52 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2019-05-30 16:21:40 (GMT) |
commit | df72f06182f3481fe8929c49578052748d980712 (patch) | |
tree | cc4f0d312a0ebf5eeba51388705643461516ac36 /Source/cmNinjaTargetGenerator.cxx | |
parent | 0eed548d3f0387a3bcbdc42ad4456987a37b2934 (diff) | |
download | CMake-df72f06182f3481fe8929c49578052748d980712.zip CMake-df72f06182f3481fe8929c49578052748d980712.tar.gz CMake-df72f06182f3481fe8929c49578052748d980712.tar.bz2 |
Ninja: Use cmNinjaBuild instead of WritePhonyBuild
Diffstat (limited to 'Source/cmNinjaTargetGenerator.cxx')
-rw-r--r-- | Source/cmNinjaTargetGenerator.cxx | 14 |
1 files 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<std::string> 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); } } |