Просмотр исходного кода

BUG: library extension goes after library name, not before

Amitha Perera 24 лет назад
Родитель
Сommit
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())
         {