mirror of
https://github.com/reactos/CMake.git
synced 2024-11-25 12:40:06 +00:00
BUG: When splitting a full path library into separate -L and -l parts, the -l part may not have a "lib" prefix on cygwin.
This commit is contained in:
parent
fdd48818db
commit
f7ca7fb868
@ -426,6 +426,7 @@ void cmUnixMakefileGenerator::OutputLinkLibraries(std::ostream& fout,
|
||||
}
|
||||
}
|
||||
cmRegularExpression libname("lib(.*)\\.(.*)");
|
||||
cmRegularExpression libname_noprefix("(.*)\\.(.*)");
|
||||
if(libname.find(file))
|
||||
{
|
||||
librariesLinked += "-l";
|
||||
@ -433,6 +434,13 @@ void cmUnixMakefileGenerator::OutputLinkLibraries(std::ostream& fout,
|
||||
librariesLinked += file;
|
||||
librariesLinked += " ";
|
||||
}
|
||||
else if(libname_noprefix.find(file))
|
||||
{
|
||||
librariesLinked += "-l";
|
||||
file = libname_noprefix.match(1);
|
||||
librariesLinked += file;
|
||||
librariesLinked += " ";
|
||||
}
|
||||
}
|
||||
// not a full path, so add -l name
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user