ENH: update vs71 generator to support excluded subdirs
This commit is contained in:
parent
ddb815c125
commit
94d8d25fd3
|
@ -41,6 +41,7 @@ cmLocalGenerator *cmGlobalVisualStudio71Generator::CreateLocalGenerator()
|
||||||
|
|
||||||
// Write a SLN file to the stream
|
// Write a SLN file to the stream
|
||||||
void cmGlobalVisualStudio71Generator::WriteSLNFile(std::ostream& fout,
|
void cmGlobalVisualStudio71Generator::WriteSLNFile(std::ostream& fout,
|
||||||
|
cmLocalGenerator* root,
|
||||||
std::vector<cmLocalGenerator*>& generators)
|
std::vector<cmLocalGenerator*>& generators)
|
||||||
{
|
{
|
||||||
// Write out the header for a SLN file
|
// Write out the header for a SLN file
|
||||||
|
@ -57,6 +58,10 @@ void cmGlobalVisualStudio71Generator::WriteSLNFile(std::ostream& fout,
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
for(i = 0; i < generators.size(); ++i)
|
for(i = 0; i < generators.size(); ++i)
|
||||||
{
|
{
|
||||||
|
if(this->IsExcluded(root, generators[i]))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
cmMakefile* mf = generators[i]->GetMakefile();
|
cmMakefile* mf = generators[i]->GetMakefile();
|
||||||
|
|
||||||
// Get the source directory from the makefile
|
// Get the source directory from the makefile
|
||||||
|
|
|
@ -44,6 +44,7 @@ public:
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void WriteSLNFile(std::ostream& fout,
|
virtual void WriteSLNFile(std::ostream& fout,
|
||||||
|
cmLocalGenerator* root,
|
||||||
std::vector<cmLocalGenerator*>& generators);
|
std::vector<cmLocalGenerator*>& generators);
|
||||||
virtual void WriteProject(std::ostream& fout,
|
virtual void WriteProject(std::ostream& fout,
|
||||||
const char* name, const char* path,
|
const char* name, const char* path,
|
||||||
|
|
Loading…
Reference in New Issue