summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-07-22 19:33:51 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2005-07-22 19:33:51 (GMT)
commit72fdb136521e892f3dc498472099ae4cfd62b008 (patch)
tree075de64b1d0f219b03b4f43e29e32de760d26511 /Source/cmLocalVisualStudio7Generator.cxx
parentdc43a3d2657ae30c52ea7e0e6a6419c54119a00b (diff)
downloadCMake-72fdb136521e892f3dc498472099ae4cfd62b008.zip
CMake-72fdb136521e892f3dc498472099ae4cfd62b008.tar.gz
CMake-72fdb136521e892f3dc498472099ae4cfd62b008.tar.bz2
BUG: fix for case mismatched lib bug # 2063
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx
index 52cccfd..76ceb84 100644
--- a/Source/cmLocalVisualStudio7Generator.cxx
+++ b/Source/cmLocalVisualStudio7Generator.cxx
@@ -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";
}