summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-07-25 20:10:08 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2005-07-25 20:10:08 (GMT)
commit6a73e8ac695a9dc1ac86c2fd4f1fc6b5e46ad4d0 (patch)
treefa34cc4936e1cc47c307f71d8068a503e06197d4 /Source/cmLocalVisualStudio7Generator.cxx
parent13bb9a9041894571da6ea53a7d00636beb067986 (diff)
downloadCMake-6a73e8ac695a9dc1ac86c2fd4f1fc6b5e46ad4d0.zip
CMake-6a73e8ac695a9dc1ac86c2fd4f1fc6b5e46ad4d0.tar.gz
CMake-6a73e8ac695a9dc1ac86c2fd4f1fc6b5e46ad4d0.tar.bz2
ENH: fix lib case bug correctly
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx12
1 files changed, 11 insertions, 1 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx
index 52cccfd..a583613 100644
--- a/Source/cmLocalVisualStudio7Generator.cxx
+++ b/Source/cmLocalVisualStudio7Generator.cxx
@@ -888,8 +888,18 @@ void cmLocalVisualStudio7Generator::OutputLibraries(std::ostream& fout,
{
debugPostfix = m_Makefile->GetDefinition("CMAKE_DEBUG_POSTFIX");
}
+ }
+ // chop off the last 4 chars of the library string
+
+ std::string lowerCaseLibExt = j->first;
+ if(lowerCaseLibExt.size() > 4)
+ {
+ lowerCaseLibExt = j->first.substr(j->first.size()-4, 4);
}
- if(j->first.find(".lib") == std::string::npos)
+ // lower case the extension
+ lowerCaseLibExt = cmSystemTools::LowerCase(lowerCaseLibExt);
+ // now check to see if it was a .lib, if not then add a .lib
+ if(lowerCaseLibExt != ".lib")
{
lib += debugPostfix + ".lib";
}