summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-02-09 20:34:38 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-02-09 20:34:38 (GMT)
commit6720075f8b45f6ac19c038a630f8d2c7373a25dc (patch)
tree11da70353e045fdac5f5fc9616f4e1775377feee
parent10611017456eece7786873899b6c36e44c3139ad (diff)
downloadCMake-6720075f8b45f6ac19c038a630f8d2c7373a25dc.zip
CMake-6720075f8b45f6ac19c038a630f8d2c7373a25dc.tar.gz
CMake-6720075f8b45f6ac19c038a630f8d2c7373a25dc.tar.bz2
BUG: -l or whatever should be at beginning of line.
-rw-r--r--Source/cmLocalUnixMakefileGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx
index 0350592..65b0ca9 100644
--- a/Source/cmLocalUnixMakefileGenerator.cxx
+++ b/Source/cmLocalUnixMakefileGenerator.cxx
@@ -747,7 +747,7 @@ void cmLocalUnixMakefileGenerator::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
- 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
&& !reg.find(lib->first))
{