summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalNinjaGenerator.cxx
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-05-30 13:03:23 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2019-05-30 16:38:19 (GMT)
commitfe018819cb4b944cafbd6d8b9e9f6332014579a9 (patch)
treeac83acb6e86574e1b9c471fb69056dd121849db8 /Source/cmGlobalNinjaGenerator.cxx
parentc367f7d5469e21739629a896aea3a04bb476c2bf (diff)
downloadCMake-fe018819cb4b944cafbd6d8b9e9f6332014579a9.zip
CMake-fe018819cb4b944cafbd6d8b9e9f6332014579a9.tar.gz
CMake-fe018819cb4b944cafbd6d8b9e9f6332014579a9.tar.bz2
Ninja: Use cmNinjaBuild instead of WritePhonyBuild
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.cxx')
-rw-r--r--Source/cmGlobalNinjaGenerator.cxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx
index 1980261..e3ea489 100644
--- a/Source/cmGlobalNinjaGenerator.cxx
+++ b/Source/cmGlobalNinjaGenerator.cxx
@@ -1382,11 +1382,10 @@ void cmGlobalNinjaGenerator::WriteTargetRebuildManifest(std::ostream& os)
this->WriteRule(*this->RulesFileStream, rule);
}
- std::string verifyForce = cm->GetGlobVerifyScript() + "_force";
- cmNinjaDeps verifyForceDeps(1, this->NinjaOutputPath(verifyForce));
-
- this->WritePhonyBuild(os, "Phony target to force glob verification run.",
- verifyForceDeps, cmNinjaDeps());
+ cmNinjaBuild phonyBuild("phony");
+ phonyBuild.Comment = "Phony target to force glob verification run.";
+ phonyBuild.Outputs.push_back(cm->GetGlobVerifyScript() + "_force");
+ this->WriteBuild(os, phonyBuild);
variables["restat"] = "1";
std::string const verifyScriptFile =
@@ -1399,7 +1398,7 @@ void cmGlobalNinjaGenerator::WriteTargetRebuildManifest(std::ostream& os)
/*outputs=*/cmNinjaDeps(1, verifyStampFile),
/*implicitOuts=*/cmNinjaDeps(),
/*explicitDeps=*/cmNinjaDeps(),
- /*implicitDeps=*/verifyForceDeps,
+ /*implicitDeps=*/phonyBuild.Outputs,
/*orderOnlyDeps=*/cmNinjaDeps(), variables);
variables.erase("restat");