BUG: make sure libraries do not depend on themselves
This commit is contained in:
parent
c1dcaf342a
commit
938e6e487b
|
@ -935,6 +935,8 @@ void cmMSDotNETGenerator::OutputLibraries(std::ostream& fout,
|
||||||
const cmTarget::LinkLibraries& libs = target.GetLinkLibraries();
|
const cmTarget::LinkLibraries& libs = target.GetLinkLibraries();
|
||||||
cmTarget::LinkLibraries::const_iterator j;
|
cmTarget::LinkLibraries::const_iterator j;
|
||||||
for(j = libs.begin(); j != libs.end(); ++j)
|
for(j = libs.begin(); j != libs.end(); ++j)
|
||||||
|
{
|
||||||
|
if(j->first != libName)
|
||||||
{
|
{
|
||||||
std::string lib = j->first;
|
std::string lib = j->first;
|
||||||
if(j->first.find(".lib") == std::string::npos)
|
if(j->first.find(".lib") == std::string::npos)
|
||||||
|
@ -949,6 +951,7 @@ void cmMSDotNETGenerator::OutputLibraries(std::ostream& fout,
|
||||||
fout << lib << " ";
|
fout << lib << " ";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void cmMSDotNETGenerator::OutputDefineFlags(std::ostream& fout)
|
void cmMSDotNETGenerator::OutputDefineFlags(std::ostream& fout)
|
||||||
|
|
Loading…
Reference in New Issue