浏览代码

fix library suffix

Bill Hoffman 24 年之前
父节点
当前提交
cb23279833
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      Source/cmNMakeMakefileGenerator.cxx

+ 3 - 1
Source/cmNMakeMakefileGenerator.cxx

@@ -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