diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-05-11 18:39:30 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-05-11 18:39:30 (GMT) |
commit | 72a9a5546f7fa4ab09c6db6208faf8bcdea81730 (patch) | |
tree | 7c098b7c769de3931fbc7ed23950611239e9c867 /Source/cmUnixMakefileGenerator.cxx | |
parent | 1a2af3f58318d6cf76260493e9db2f0df9d17ba7 (diff) | |
download | CMake-72a9a5546f7fa4ab09c6db6208faf8bcdea81730.zip CMake-72a9a5546f7fa4ab09c6db6208faf8bcdea81730.tar.gz CMake-72a9a5546f7fa4ab09c6db6208faf8bcdea81730.tar.bz2 |
BUG: fix find library for unix
Diffstat (limited to 'Source/cmUnixMakefileGenerator.cxx')
-rw-r--r-- | Source/cmUnixMakefileGenerator.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx index 680e2b7..ee68e56 100644 --- a/Source/cmUnixMakefileGenerator.cxx +++ b/Source/cmUnixMakefileGenerator.cxx @@ -193,6 +193,7 @@ void cmUnixMakefileGenerator::OutputLinkLibraries(std::ostream& fout, } std::string librariesLinked; const cmTarget::LinkLibraries& libs = tgt.GetLinkLibraries(); + cmRegularExpression reg("lib(.*)(\\.so$|\\.a|\\.sl$)"); for(cmTarget::LinkLibraries::const_iterator lib = libs.begin(); lib != libs.end(); ++lib) { @@ -210,6 +211,10 @@ void cmUnixMakefileGenerator::OutputLinkLibraries(std::ostream& fout, linkLibs += cmSystemTools::EscapeSpaces(dir.c_str()); linkLibs += " "; librariesLinked += "-l"; + if(reg.find(file)) + { + file = reg.match(1); + } librariesLinked += file; librariesLinked += " "; } |