BUG: -l or whatever should be at beginning of line.
This commit is contained in:
parent
1061101745
commit
6720075f8b
|
@ -747,7 +747,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)");
|
||||||
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