Forráskód Böngészése

Fix regular expressions to be able to handle windows libraries

Andy Cedilnik 23 éve
szülő
commit
b7701cfa1a
1 módosított fájl, 3 hozzáadás és 2 törlés
  1. 3 2
      Source/cmLocalUnixMakefileGenerator.cxx

+ 3 - 2
Source/cmLocalUnixMakefileGenerator.cxx

@@ -559,8 +559,9 @@ void cmLocalUnixMakefileGenerator::OutputLinkLibraries(std::ostream& fout,
           }
         }  
       cmRegularExpression reg(regexp.c_str());
-      cmRegularExpression libname("lib(.*)(\\.so|\\.sl|\\.a|\\.dylib).*");
-      cmRegularExpression libname_noprefix("(.*)(\\.so|\\.sl|\\.a|\\.dylib).*");
+      cmRegularExpression libname("lib([^/]*)(\\.so|\\.lib|\\.dll|\\.sl|\\.a|\\.dylib).*");
+      cmRegularExpression libname_noprefix("([^/]*)(\\.so|\\.lib|\\.dll|\\.sl|\\.a|\\.dylib).*");
+
       if(libname.find(file))
         {
         librariesLinked += libLinkFlag;