BUG: look for -l anywhere in link library entry not just the begining of the line

This commit is contained in:
Bill Hoffman 2002-04-30 08:09:41 -04:00
parent ecbc720829
commit 42b7d859ad
1 changed files with 1 additions and 1 deletions

View File

@ -515,7 +515,7 @@ void cmUnixMakefileGenerator::OutputLinkLibraries(std::ostream& fout,
// if a variable expands to nothing.
if (lib->first.size() == 0) continue;
// if it is a full path break it into -L and -l
cmRegularExpression reg("(^[ \t]*\\-l)|(^[ \t]*\\-framework)|(\\${)");
cmRegularExpression reg("([ \t]*\\-l)|([ \t]*\\-framework)|(\\${)");
if(lib->first.find('/') != std::string::npos
&& !reg.find(lib->first))
{