ENH: update vs71 generator to support excluded subdirs

This commit is contained in:
Bill Hoffman 2004-03-10 14:33:18 -05:00
parent ddb815c125
commit 94d8d25fd3
2 changed files with 8 additions and 2 deletions

View File

@ -41,6 +41,7 @@ cmLocalGenerator *cmGlobalVisualStudio71Generator::CreateLocalGenerator()
// Write a SLN file to the stream
void cmGlobalVisualStudio71Generator::WriteSLNFile(std::ostream& fout,
cmLocalGenerator* root,
std::vector<cmLocalGenerator*>& generators)
{
// Write out the header for a SLN file
@ -56,7 +57,11 @@ void cmGlobalVisualStudio71Generator::WriteSLNFile(std::ostream& fout,
// add it to this SLN file
unsigned int i;
for(i = 0; i < generators.size(); ++i)
{
{
if(this->IsExcluded(root, generators[i]))
{
continue;
}
cmMakefile* mf = generators[i]->GetMakefile();
// Get the source directory from the makefile

View File

@ -43,7 +43,8 @@ public:
virtual cmLocalGenerator *CreateLocalGenerator();
protected:
virtual void WriteSLNFile(std::ostream& fout,
virtual void WriteSLNFile(std::ostream& fout,
cmLocalGenerator* root,
std::vector<cmLocalGenerator*>& generators);
virtual void WriteProject(std::ostream& fout,
const char* name, const char* path,