diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2005-01-21 17:26:32 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2005-01-21 17:26:32 (GMT) |
commit | 13865fc4fae3806c1359e17e60b7032edc379026 (patch) | |
tree | 00a008367d2e67dfbd1eefd09d196f980bc03dc0 /Source/cmGlobalVisualStudio7Generator.cxx | |
parent | 35c33d0e2df8646c67125dde4c8b05267388f73c (diff) | |
download | CMake-13865fc4fae3806c1359e17e60b7032edc379026.zip CMake-13865fc4fae3806c1359e17e60b7032edc379026.tar.gz CMake-13865fc4fae3806c1359e17e60b7032edc379026.tar.bz2 |
ENH: move project map to global generator base
Diffstat (limited to 'Source/cmGlobalVisualStudio7Generator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudio7Generator.cxx | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/Source/cmGlobalVisualStudio7Generator.cxx b/Source/cmGlobalVisualStudio7Generator.cxx index e85a80c..7f240c9 100644 --- a/Source/cmGlobalVisualStudio7Generator.cxx +++ b/Source/cmGlobalVisualStudio7Generator.cxx @@ -162,7 +162,7 @@ void cmGlobalVisualStudio7Generator::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 @@ -246,13 +246,11 @@ void cmGlobalVisualStudio7Generator::GenerateConfigurations(cmMakefile* mf) void cmGlobalVisualStudio7Generator::Generate() { - // collect sub-projects - this->CollectSubprojects(); // add a special target that depends on ALL projects for easy build // of Debug 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 @@ -302,7 +300,7 @@ void cmGlobalVisualStudio7Generator::OutputSLNFile(cmLocalGenerator* root, void cmGlobalVisualStudio7Generator::OutputSLNFile() { 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->OutputSLNFile(it->second[0], it->second); } @@ -724,23 +722,6 @@ void cmGlobalVisualStudio7Generator::GetDocumentation(cmDocumentationEntry& entr entry.full = ""; } -// populate the m_SubProjectMap -void cmGlobalVisualStudio7Generator::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]); - } - } -} - // make sure "special" targets have GUID's void cmGlobalVisualStudio7Generator::Configure() { |