diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2019-05-30 13:03:23 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2019-05-30 16:38:19 (GMT) |
commit | fe018819cb4b944cafbd6d8b9e9f6332014579a9 (patch) | |
tree | ac83acb6e86574e1b9c471fb69056dd121849db8 /Source/cmGlobalNinjaGenerator.cxx | |
parent | c367f7d5469e21739629a896aea3a04bb476c2bf (diff) | |
download | CMake-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.cxx | 11 |
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"); |