summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-09-03 19:17:18 (GMT)
committerBrad King <brad.king@kitware.com>2020-09-04 13:44:30 (GMT)
commit48bf7192e702f9fdc99585e3d9d616091cc62974 (patch)
tree73d8d2d5f999702bed5c621b6cb0a2757099b181 /Source
parent17aba9c9a6a73dfc110c026abfe1f16e13cb1bec (diff)
downloadCMake-48bf7192e702f9fdc99585e3d9d616091cc62974.zip
CMake-48bf7192e702f9fdc99585e3d9d616091cc62974.tar.gz
CMake-48bf7192e702f9fdc99585e3d9d616091cc62974.tar.bz2
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.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx5
1 files 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);
}
}
}