Explorar o código

BUG: library return values were not UNIX slashes on Win98

Ken Martin %!s(int64=20) %!d(string=hai) anos
pai
achega
13e99490fb
Modificáronse 1 ficheiros con 6 adicións e 2 borrados
  1. 6 2
      Source/cmMakefile.cxx

+ 6 - 2
Source/cmMakefile.cxx

@@ -2259,10 +2259,14 @@ std::string cmMakefile::FindLibrary(const char* name,
           }
         }
       // now look for the library in the 64 bit path
-      return cmSystemTools::FindLibrary(name, path64);
+      std::string tmp = cmSystemTools::FindLibrary(name, path64);
+      cmSystemTools::ConvertToUnixSlashes(tmp);
+      return tmp;
       }
     }
-  return cmSystemTools::FindLibrary(name, path);
+  std::string tmp = cmSystemTools::FindLibrary(name, path);
+  cmSystemTools::ConvertToUnixSlashes(tmp);
+  return tmp;
 }
 
 std::string cmMakefile::GetModulesFile(const char* filename)