BUG: Fix problem with lib in the name of library. If there was lib in the name of library, then on Windows (where there is not lib prefix), cmake split the name wrongly. This only manifested when full path to the library is specified.
This commit is contained in:
parent
610da00d51
commit
77c538d12b
|
@ -595,7 +595,7 @@ void cmLocalUnixMakefileGenerator::OutputLinkLibraries(std::ostream& fout,
|
|||
runtimeDirs.push_back( libpath );
|
||||
}
|
||||
}
|
||||
cmRegularExpression libname("lib([^/]*)(\\.so|\\.lib|\\.dll|\\.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))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue