ENH: only add .lib if no .lib exists

This commit is contained in:
Bill Hoffman 2001-05-09 15:48:06 -04:00
parent f07ee5b817
commit e30a660df5
2 changed files with 24 additions and 6 deletions

View File

@ -443,19 +443,28 @@ void cmDSPMakefile::WriteDSPHeader(std::ostream& fout, const char *libName,
{
libOptions += " ";
libOptions += j->first;
libOptions += ".lib ";
if(j->first.find(".lib") == std::string::npos)
{
libOptions += ".lib ";
}
}
if (j->second == cmTarget::DEBUG)
{
libDebugOptions += " ";
libDebugOptions += j->first;
libDebugOptions += ".lib ";
if(j->first.find(".lib") == std::string::npos)
{
libDebugOptions += ".lib ";
}
}
if (j->second == cmTarget::OPTIMIZED)
{
libOptimizedOptions += " ";
libOptimizedOptions += j->first;
libOptimizedOptions += ".lib ";
if(j->first.find(".lib") == std::string::npos)
{
libOptimizedOptions += ".lib ";
}
}
}
}

View File

@ -443,19 +443,28 @@ void cmDSPMakefile::WriteDSPHeader(std::ostream& fout, const char *libName,
{
libOptions += " ";
libOptions += j->first;
libOptions += ".lib ";
if(j->first.find(".lib") == std::string::npos)
{
libOptions += ".lib ";
}
}
if (j->second == cmTarget::DEBUG)
{
libDebugOptions += " ";
libDebugOptions += j->first;
libDebugOptions += ".lib ";
if(j->first.find(".lib") == std::string::npos)
{
libDebugOptions += ".lib ";
}
}
if (j->second == cmTarget::OPTIMIZED)
{
libOptimizedOptions += " ";
libOptimizedOptions += j->first;
libOptimizedOptions += ".lib ";
if(j->first.find(".lib") == std::string::npos)
{
libOptimizedOptions += ".lib ";
}
}
}
}