summaryrefslogtreecommitdiffstats
path: root/Source/cmNinjaNormalTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-09-12 14:47:04 (GMT)
committerBrad King <brad.king@kitware.com>2024-09-12 16:24:48 (GMT)
commitad66be99436ddf37cb93e5dc6f070b6034618483 (patch)
tree7f5d63eb3dae5d2ff2b79484738199b95fc5e16e /Source/cmNinjaNormalTargetGenerator.cxx
parent269c3a13c80f2a1a73147bf0aede4f5bdd75b1d3 (diff)
downloadCMake-ad66be99436ddf37cb93e5dc6f070b6034618483.zip
CMake-ad66be99436ddf37cb93e5dc6f070b6034618483.tar.gz
CMake-ad66be99436ddf37cb93e5dc6f070b6034618483.tar.bz2
cmNinjaTargetGenerator: Factor out helper to add depfile bindings
Diffstat (limited to 'Source/cmNinjaNormalTargetGenerator.cxx')
-rw-r--r--Source/cmNinjaNormalTargetGenerator.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx
index c37e4c2..cd9d1ef 100644
--- a/Source/cmNinjaNormalTargetGenerator.cxx
+++ b/Source/cmNinjaNormalTargetGenerator.cxx
@@ -1163,11 +1163,10 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement(
cmNinjaVars& vars = linkBuild.Variables;
if (this->GeneratorTarget->HasLinkDependencyFile(config)) {
- vars["DEP_FILE"] = this->GetLocalGenerator()->ConvertToOutputFormat(
- this->ConvertToNinjaPath(
- this->GetLocalGenerator()->GetLinkDependencyFile(this->GeneratorTarget,
- config)),
- cmOutputConverter::SHELL);
+ this->AddDepfileBinding(vars,
+ this->ConvertToNinjaPath(
+ this->GetLocalGenerator()->GetLinkDependencyFile(
+ this->GeneratorTarget, config)));
}
// Compute the comment.