summaryrefslogtreecommitdiffstats
path: root/Source/cmUnixMakefileGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-04-30 12:09:41 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-04-30 12:09:41 (GMT)
commit42b7d859ad3eda64abbc2388a2d016309559c435 (patch)
tree12cd528343750204560354ad705e991d6899c4dc /Source/cmUnixMakefileGenerator.cxx
parentecbc720829871ef0c0bf5e9cfb099e42e07fee4a (diff)
downloadCMake-42b7d859ad3eda64abbc2388a2d016309559c435.zip
CMake-42b7d859ad3eda64abbc2388a2d016309559c435.tar.gz
CMake-42b7d859ad3eda64abbc2388a2d016309559c435.tar.bz2
BUG: look for -l anywhere in link library entry not just the begining of the line
Diffstat (limited to 'Source/cmUnixMakefileGenerator.cxx')
-rw-r--r--Source/cmUnixMakefileGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx
index 4f19ec6..125f5c1 100644
--- a/Source/cmUnixMakefileGenerator.cxx
+++ b/Source/cmUnixMakefileGenerator.cxx
@@ -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))
{