Commit 72fdb136 authored by Bill Hoffman's avatar Bill Hoffman
Browse files

BUG: fix for case mismatched lib bug # 2063

parent dc43a3d2
......@@ -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";
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment