mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 10:50:16 -06:00
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.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user