diff options
author | Brad King <brad.king@kitware.com> | 2009-10-01 14:26:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-10-01 14:26:54 (GMT) |
commit | c8ddb6813b5888fa638ed312fca6473028c61aa4 (patch) | |
tree | 591d4fbbe946089a522d0b7a43be6698f478effa /Source/cmGlobalVisualStudio71Generator.cxx | |
parent | e8cdd54f74851f0cc6f1fa544f48304e415ad91d (diff) | |
download | CMake-c8ddb6813b5888fa638ed312fca6473028c61aa4.zip CMake-c8ddb6813b5888fa638ed312fca6473028c61aa4.tar.gz CMake-c8ddb6813b5888fa638ed312fca6473028c61aa4.tar.bz2 |
Cleanup cmGlobalGenerator::GetTargetSets method
This commit cleans up the declaration, definition, and invocations of
the GetTargetSets method and related code. There is no change in
function except to make the method virtual.
Diffstat (limited to 'Source/cmGlobalVisualStudio71Generator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudio71Generator.cxx | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/Source/cmGlobalVisualStudio71Generator.cxx b/Source/cmGlobalVisualStudio71Generator.cxx index 3adc058..c7014aa 100644 --- a/Source/cmGlobalVisualStudio71Generator.cxx +++ b/Source/cmGlobalVisualStudio71Generator.cxx @@ -100,17 +100,14 @@ void cmGlobalVisualStudio71Generator { // Write out the header for a SLN file this->WriteSLNHeader(fout); - - // collect the set of targets for this project by - // tracing depends of all targets. - // also collect the set of targets that are explicitly - // in this project. - cmGlobalGenerator::TargetDependSet projectTargets; - cmGlobalGenerator::TargetDependSet originalTargets; - this->GetTargetSets(projectTargets, - originalTargets, - root, generators); + + // Collect all targets under this root generator and the transitive + // closure of their dependencies. + TargetDependSet projectTargets; + TargetDependSet originalTargets; + this->GetTargetSets(projectTargets, originalTargets, root, generators); OrderedTargetDependSet orderedProjectTargets(projectTargets); + this->WriteTargetsToSolution(fout, root, orderedProjectTargets); // Write out the configurations information for the solution fout << "Global\n"; |