BUG: fix for case mismatched lib bug # 2063

This commit is contained in:
Bill Hoffman 2005-07-22 15:33:51 -04:00
parent dc43a3d265
commit 72fdb13652
1 changed files with 4 additions and 1 deletions

View File

@ -889,7 +889,10 @@ void cmLocalVisualStudio7Generator::OutputLibraries(std::ostream& fout,
debugPostfix = m_Makefile->GetDefinition("CMAKE_DEBUG_POSTFIX");
}
}
if(j->first.find(".lib") == std::string::npos)
// since windows is case insensitive then check for lower case .lib as
// at the end of the string, if not yet there add it.
std::string lowerCaseLib = cmSystemTools::LowerCase(j->first);
if(lowerCaseLib.rfind(".lib") != (lowerCaseLib.size()-4))
{
lib += debugPostfix + ".lib";
}