ENH: only add .lib if no .lib exists
This commit is contained in:
parent
f07ee5b817
commit
e30a660df5
|
@ -443,22 +443,31 @@ void cmDSPMakefile::WriteDSPHeader(std::ostream& fout, const char *libName,
|
|||
{
|
||||
libOptions += " ";
|
||||
libOptions += j->first;
|
||||
if(j->first.find(".lib") == std::string::npos)
|
||||
{
|
||||
libOptions += ".lib ";
|
||||
}
|
||||
}
|
||||
if (j->second == cmTarget::DEBUG)
|
||||
{
|
||||
libDebugOptions += " ";
|
||||
libDebugOptions += j->first;
|
||||
if(j->first.find(".lib") == std::string::npos)
|
||||
{
|
||||
libDebugOptions += ".lib ";
|
||||
}
|
||||
}
|
||||
if (j->second == cmTarget::OPTIMIZED)
|
||||
{
|
||||
libOptimizedOptions += " ";
|
||||
libOptimizedOptions += j->first;
|
||||
if(j->first.find(".lib") == std::string::npos)
|
||||
{
|
||||
libOptimizedOptions += ".lib ";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
libOptions += "/STACK:10000000 ";
|
||||
|
||||
std::ifstream fin(m_DSPHeaderTemplate.c_str());
|
||||
|
|
|
@ -443,22 +443,31 @@ void cmDSPMakefile::WriteDSPHeader(std::ostream& fout, const char *libName,
|
|||
{
|
||||
libOptions += " ";
|
||||
libOptions += j->first;
|
||||
if(j->first.find(".lib") == std::string::npos)
|
||||
{
|
||||
libOptions += ".lib ";
|
||||
}
|
||||
}
|
||||
if (j->second == cmTarget::DEBUG)
|
||||
{
|
||||
libDebugOptions += " ";
|
||||
libDebugOptions += j->first;
|
||||
if(j->first.find(".lib") == std::string::npos)
|
||||
{
|
||||
libDebugOptions += ".lib ";
|
||||
}
|
||||
}
|
||||
if (j->second == cmTarget::OPTIMIZED)
|
||||
{
|
||||
libOptimizedOptions += " ";
|
||||
libOptimizedOptions += j->first;
|
||||
if(j->first.find(".lib") == std::string::npos)
|
||||
{
|
||||
libOptimizedOptions += ".lib ";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
libOptions += "/STACK:10000000 ";
|
||||
|
||||
std::ifstream fin(m_DSPHeaderTemplate.c_str());
|
||||
|
|
Loading…
Reference in New Issue