瀏覽代碼

BUG: library extension goes after library name, not before

Amitha Perera 25 年之前
父節點
當前提交
c437247141
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Source/cmUnixMakefileGenerator.cxx

+ 2 - 2
Source/cmUnixMakefileGenerator.cxx

@@ -617,11 +617,11 @@ void cmUnixMakefileGenerator::OutputDependencies(std::ostream& fout)
         = cmCacheManager::GetInstance()->GetCacheValue(ltname.c_str());
       if(libType && std::string(libType) == "SHARED")
         {
-        libpath += m_Makefile->GetDefinition("CMAKE_SHLIB_SUFFIX");
+        library += m_Makefile->GetDefinition("CMAKE_SHLIB_SUFFIX");
         }
       else
         {
-        libpath += ".a";
+        library += ".a";
         }
       if(m_LibraryOutputPath.size())
         {