Fix regular expressions to be able to handle windows libraries
This commit is contained in:
parent
d1051bb575
commit
b7701cfa1a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue