BUG: make sure libraries do not depend on themselves

This commit is contained in:
Bill Hoffman 2002-03-11 08:11:26 -05:00
parent c1dcaf342a
commit 938e6e487b
1 changed files with 13 additions and 10 deletions

View File

@ -935,6 +935,8 @@ void cmMSDotNETGenerator::OutputLibraries(std::ostream& fout,
const cmTarget::LinkLibraries& libs = target.GetLinkLibraries();
cmTarget::LinkLibraries::const_iterator j;
for(j = libs.begin(); j != libs.end(); ++j)
{
if(j->first != libName)
{
std::string lib = j->first;
if(j->first.find(".lib") == std::string::npos)
@ -950,6 +952,7 @@ void cmMSDotNETGenerator::OutputLibraries(std::ostream& fout,
}
}
}
}
void cmMSDotNETGenerator::OutputDefineFlags(std::ostream& fout)
{