summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio71Generator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-10-01 14:26:54 (GMT)
committerBrad King <brad.king@kitware.com>2009-10-01 14:26:54 (GMT)
commitc8ddb6813b5888fa638ed312fca6473028c61aa4 (patch)
tree591d4fbbe946089a522d0b7a43be6698f478effa /Source/cmGlobalVisualStudio71Generator.cxx
parente8cdd54f74851f0cc6f1fa544f48304e415ad91d (diff)
downloadCMake-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.cxx17
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";