summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-05-30 09:52:22 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2019-05-30 16:21:40 (GMT)
commitdff42d481230599ba7962a5895d75e7c0d16939e (patch)
tree84ce674879667b4c7cd1d79271caf78a8a4a00ba
parentdf72f06182f3481fe8929c49578052748d980712 (diff)
downloadCMake-dff42d481230599ba7962a5895d75e7c0d16939e.zip
CMake-dff42d481230599ba7962a5895d75e7c0d16939e.tar.gz
CMake-dff42d481230599ba7962a5895d75e7c0d16939e.tar.bz2
Ninja: Use cmNinjaBuild instead of WritePhonyBuild
-rw-r--r--Source/cmNinjaNormalTargetGenerator.cxx15
1 files changed, 8 insertions, 7 deletions
diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx
index 6e9e112..2e410c8 100644
--- a/Source/cmNinjaNormalTargetGenerator.cxx
+++ b/Source/cmNinjaNormalTargetGenerator.cxx
@@ -1123,13 +1123,14 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
void cmNinjaNormalTargetGenerator::WriteObjectLibStatement()
{
// Write a phony output that depends on all object files.
- cmNinjaDeps outputs;
- this->GetLocalGenerator()->AppendTargetOutputs(this->GetGeneratorTarget(),
- outputs);
- cmNinjaDeps depends = this->GetObjects();
- this->GetGlobalGenerator()->WritePhonyBuild(
- this->GetBuildFileStream(), "Object library " + this->GetTargetName(),
- outputs, depends);
+ {
+ cmNinjaBuild build("phony");
+ build.Comment = "Object library " + this->GetTargetName();
+ this->GetLocalGenerator()->AppendTargetOutputs(this->GetGeneratorTarget(),
+ build.Outputs);
+ build.ExplicitDeps = this->GetObjects();
+ this->GetGlobalGenerator()->WriteBuild(this->GetBuildFileStream(), build);
+ }
// Add aliases for the target name.
this->GetGlobalGenerator()->AddTargetAlias(this->GetTargetName(),