fix library suffix

This commit is contained in:
Bill Hoffman 2001-11-30 13:09:53 -05:00
parent 47ae31d307
commit cb23279833
1 changed files with 3 additions and 1 deletions

View File

@ -521,7 +521,9 @@ void cmNMakeMakefileGenerator::OutputLinkLibraries(std::ostream& fout,
if (lib->first.size() == 0) continue;
if(emitted.insert(lib->first).second)
{
std::string regexp = ".*\\" + m_StaticLibraryExtension + "$";
std::string regexp = ".*\\";
regexp += m_Makefile->GetDefinition("CMAKE_STATICLIB_SUFFIX");
regexp += "$";
cmRegularExpression reg(regexp.c_str());
// if it ends in .lib, then it is a full path and should
// be escaped, and does not need .lib added