summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio6Generator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-01-21 17:26:32 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2005-01-21 17:26:32 (GMT)
commit13865fc4fae3806c1359e17e60b7032edc379026 (patch)
tree00a008367d2e67dfbd1eefd09d196f980bc03dc0 /Source/cmGlobalVisualStudio6Generator.cxx
parent35c33d0e2df8646c67125dde4c8b05267388f73c (diff)
downloadCMake-13865fc4fae3806c1359e17e60b7032edc379026.zip
CMake-13865fc4fae3806c1359e17e60b7032edc379026.tar.gz
CMake-13865fc4fae3806c1359e17e60b7032edc379026.tar.bz2
ENH: move project map to global generator base
Diffstat (limited to 'Source/cmGlobalVisualStudio6Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio6Generator.cxx27
1 files changed, 3 insertions, 24 deletions
diff --git a/Source/cmGlobalVisualStudio6Generator.cxx b/Source/cmGlobalVisualStudio6Generator.cxx
index 8a017e1..aa17ed9 100644
--- a/Source/cmGlobalVisualStudio6Generator.cxx
+++ b/Source/cmGlobalVisualStudio6Generator.cxx
@@ -159,14 +159,11 @@ cmLocalGenerator *cmGlobalVisualStudio6Generator::CreateLocalGenerator()
void cmGlobalVisualStudio6Generator::Generate()
{
- // collect sub-projects
- this->CollectSubprojects();
-
// add a special target that depends on ALL projects for easy build
// of one configuration only.
std::vector<std::string> srcs;
std::map<cmStdString, std::vector<cmLocalGenerator*> >::iterator it;
- for(it = m_SubProjectMap.begin(); it!= m_SubProjectMap.end(); ++it)
+ for(it = m_ProjectMap.begin(); it!= m_ProjectMap.end(); ++it)
{
std::vector<cmLocalGenerator*>& gen = it->second;
// add the ALL_BUILD to the first local generator of each project
@@ -192,24 +189,6 @@ void cmGlobalVisualStudio6Generator::Generate()
this->OutputDSWFile();
}
-// populate the m_SubProjectMap
-void cmGlobalVisualStudio6Generator::CollectSubprojects()
-{
- unsigned int i;
- for(i = 0; i < m_LocalGenerators.size(); ++i)
- {
- std::string name = m_LocalGenerators[i]->GetMakefile()->GetProjectName();
- m_SubProjectMap[name].push_back(m_LocalGenerators[i]);
- std::vector<std::string> const& pprojects
- = m_LocalGenerators[i]->GetMakefile()->GetParentProjects();
- for(unsigned int k =0; k < pprojects.size(); ++k)
- {
- m_SubProjectMap[pprojects[k]].push_back(m_LocalGenerators[i]);
- }
- }
-}
-
-
// Write a DSW file to the stream
void cmGlobalVisualStudio6Generator::WriteDSWFile(std::ostream& fout,
cmLocalGenerator* root,
@@ -373,7 +352,7 @@ void cmGlobalVisualStudio6Generator::OutputDSWFile(cmLocalGenerator* root,
void cmGlobalVisualStudio6Generator::OutputDSWFile()
{
std::map<cmStdString, std::vector<cmLocalGenerator*> >::iterator it;
- for(it = m_SubProjectMap.begin(); it!= m_SubProjectMap.end(); ++it)
+ for(it = m_ProjectMap.begin(); it!= m_ProjectMap.end(); ++it)
{
this->OutputDSWFile(it->second[0], it->second);
}
@@ -431,7 +410,7 @@ void cmGlobalVisualStudio6Generator::SetupTests()
{
std::vector<std::string> srcs;
std::map<cmStdString, std::vector<cmLocalGenerator*> >::iterator it;
- for(it = m_SubProjectMap.begin(); it!= m_SubProjectMap.end(); ++it)
+ for(it = m_ProjectMap.begin(); it!= m_ProjectMap.end(); ++it)
{
std::vector<cmLocalGenerator*>& gen = it->second;
// add the ALL_BUILD to the first local generator of each project