summaryrefslogtreecommitdiffstats
path: root/Source/cmUnixMakefileGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2001-05-25 18:27:30 (GMT)
committerBrad King <brad.king@kitware.com>2001-05-25 18:27:30 (GMT)
commitc60696ccaf8a0d35a424389106d7d11c37248382 (patch)
tree1b8b27cbd0c16418c880a86519f90967d0d47f5f /Source/cmUnixMakefileGenerator.cxx
parentf190cb8dc20e1130d0237778d4e81f0d515732df (diff)
downloadCMake-c60696ccaf8a0d35a424389106d7d11c37248382.zip
CMake-c60696ccaf8a0d35a424389106d7d11c37248382.tar.gz
CMake-c60696ccaf8a0d35a424389106d7d11c37248382.tar.bz2
BUG: Fixed logic that splits a full path library link into the -L and -l pieces to not write out a -l by itself if the file regular expression does not match.
Diffstat (limited to 'Source/cmUnixMakefileGenerator.cxx')
-rw-r--r--Source/cmUnixMakefileGenerator.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx
index d6f0737..5038bde 100644
--- a/Source/cmUnixMakefileGenerator.cxx
+++ b/Source/cmUnixMakefileGenerator.cxx
@@ -292,14 +292,14 @@ void cmUnixMakefileGenerator::OutputLinkLibraries(std::ostream& fout,
linkLibs += libpath;
linkLibs += " ";
}
- librariesLinked += "-l";
cmRegularExpression libname("lib(.*)\\.(.*)");
if(libname.find(file))
{
+ librariesLinked += "-l";
file = libname.match(1);
+ librariesLinked += file;
+ librariesLinked += " ";
}
- librariesLinked += file;
- librariesLinked += " ";
}
// not a full path, so add -l name
else