ENH: Handle backticks as a valid library
This commit is contained in:
parent
3455bec9cb
commit
bdd4f8a216
|
@ -742,7 +742,7 @@ void cmLocalUnixMakefileGenerator::OutputLinkLibraries(std::ostream& fout,
|
||||||
// if a variable expands to nothing.
|
// if a variable expands to nothing.
|
||||||
if (lib->first.size() == 0) continue;
|
if (lib->first.size() == 0) continue;
|
||||||
// if it is a full path break it into -L and -l
|
// if it is a full path break it into -L and -l
|
||||||
cmsys::RegularExpression reg("^([ \t]*\\-l)|([ \t]*\\-framework)|(\\${)|([ \t]*\\-pthread)");
|
cmsys::RegularExpression reg("^([ \t]*\\-l)|([ \t]*\\-framework)|(\\${)|([ \t]*\\-pthread)|([ \t]*`)");
|
||||||
if(lib->first.find('/') != std::string::npos
|
if(lib->first.find('/') != std::string::npos
|
||||||
&& !reg.find(lib->first))
|
&& !reg.find(lib->first))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue