From 542b034a66da45b82afd05eacfcafa22ee41f7ac Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Thu, 23 Feb 2006 14:05:32 -0500 Subject: COMP: Even more Visual Studio fixes. Why is this code duplicated? --- Source/cmGlobalVisualStudio71Generator.cxx | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/Source/cmGlobalVisualStudio71Generator.cxx b/Source/cmGlobalVisualStudio71Generator.cxx index ef9487d..ad31d5a 100644 --- a/Source/cmGlobalVisualStudio71Generator.cxx +++ b/Source/cmGlobalVisualStudio71Generator.cxx @@ -56,6 +56,9 @@ void cmGlobalVisualStudio71Generator::WriteSLNFile(std::ostream& fout, bool doneCheckBuild = false; bool doneRunTests = false; bool doneInstall = false; + bool doneEditCache = false; + bool doneRebuildCache = false; + bool donePackage = false; // For each cmMakefile, create a VCProj for it, and // add it to this SLN file @@ -176,6 +179,39 @@ void cmGlobalVisualStudio71Generator::WriteSLNFile(std::ostream& fout, doneRunTests = true; } } + if(l->first == "EDIT_CACHE") + { + if(doneEditCache) + { + skip = true; + } + else + { + doneEditCache = true; + } + } + if(l->first == "REBUILD_CACHE") + { + if(doneRebuildCache) + { + skip = true; + } + else + { + doneRebuildCache = true; + } + } + if(l->first == "PACKAGE") + { + if(donePackage) + { + skip = true; + } + else + { + donePackage = true; + } + } if(!skip) { this->WriteProject(fout, si->c_str(), dir.c_str(),l->second); -- cgit v0.12