From 48bf7192e702f9fdc99585e3d9d616091cc62974 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 3 Sep 2020 15:17:18 -0400 Subject: cmLocalVisualStudio7Generator: Generate targets in dependency order Use the globally computed target ordering so that we generate all of a target's dependencies before generating the target itself. --- Source/cmLocalVisualStudio7Generator.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx index fb10022..1eaf450 100644 --- a/Source/cmLocalVisualStudio7Generator.cxx +++ b/Source/cmLocalVisualStudio7Generator.cxx @@ -125,7 +125,8 @@ void cmLocalVisualStudio7Generator::WriteProjectFiles() } // Get the set of targets in this directory. - const auto& tgts = this->GetGeneratorTargets(); + const auto& tgts = + this->GlobalGenerator->GetLocalGeneratorTargetsInOrder(this); // Create the project file for each target. for (const auto& l : tgts) { @@ -135,7 +136,7 @@ void cmLocalVisualStudio7Generator::WriteProjectFiles() // INCLUDE_EXTERNAL_MSPROJECT command only affects the workspace // so don't build a projectfile for it if (!l->GetProperty("EXTERNAL_MSPROJECT")) { - this->CreateSingleVCProj(l->GetName(), l.get()); + this->CreateSingleVCProj(l->GetName(), l); } } } -- cgit v0.12