diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-09-28 14:40:14 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-09-28 14:40:14 (GMT) |
commit | 9ae8234fe5c1fd3b46bc4c89b09ed6342c18b43c (patch) | |
tree | 5faa371b73135b263c96214cb4e4eb52cc14ff96 /Source/cmUnixMakefileGenerator.cxx | |
parent | d9e38b32c3ad47ee47f18b52b4321c37d2143c3e (diff) | |
download | CMake-9ae8234fe5c1fd3b46bc4c89b09ed6342c18b43c.zip CMake-9ae8234fe5c1fd3b46bc4c89b09ed6342c18b43c.tar.gz CMake-9ae8234fe5c1fd3b46bc4c89b09ed6342c18b43c.tar.bz2 |
BUG: get correct library name
Diffstat (limited to 'Source/cmUnixMakefileGenerator.cxx')
-rw-r--r-- | Source/cmUnixMakefileGenerator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx index b1bd7db..5808abc 100644 --- a/Source/cmUnixMakefileGenerator.cxx +++ b/Source/cmUnixMakefileGenerator.cxx @@ -450,8 +450,8 @@ void cmUnixMakefileGenerator::OutputLinkLibraries(std::ostream& fout, runtimeDirs.push_back( libpath ); } } - cmRegularExpression libname("lib([^.]*)\\.(.*)"); - cmRegularExpression libname_noprefix("([^.]*)\\.(.*)"); + cmRegularExpression libname("lib(.*)(\\.so|\\.sl|\\.a|\\.dylib).*"); + cmRegularExpression libname_noprefix("(.*)(\\.so|\\.sl|\\.a|\\.dylib).*"); if(libname.find(file)) { librariesLinked += "-l"; |