diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-02-19 17:54:25 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-02-19 17:54:25 (GMT) |
commit | 77c538d12be20902b2899577e7f1eaead02d2024 (patch) | |
tree | 8638d096e4ecdd76d69b7e0d91eb85b602e6af93 | |
parent | 610da00d51bb761325b2f93e202094ae1a3ed4c1 (diff) | |
download | CMake-77c538d12be20902b2899577e7f1eaead02d2024.zip CMake-77c538d12be20902b2899577e7f1eaead02d2024.tar.gz CMake-77c538d12be20902b2899577e7f1eaead02d2024.tar.bz2 |
BUG: Fix problem with lib in the name of library. If there was lib in the name of library, then on Windows (where there is not lib prefix), cmake split the name wrongly. This only manifested when full path to the library is specified.
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx index 92e4183..539a910 100644 --- a/Source/cmLocalUnixMakefileGenerator.cxx +++ b/Source/cmLocalUnixMakefileGenerator.cxx @@ -595,7 +595,7 @@ void cmLocalUnixMakefileGenerator::OutputLinkLibraries(std::ostream& fout, runtimeDirs.push_back( libpath ); } } - cmRegularExpression libname("lib([^/]*)(\\.so|\\.lib|\\.dll|\\.sl|\\.a|\\.dylib).*"); + cmRegularExpression libname("^lib([^/]*)(\\.so|\\.lib|\\.dll|\\.sl|\\.a|\\.dylib).*"); cmRegularExpression libname_noprefix("([^/]*)(\\.so|\\.lib|\\.dll|\\.sl|\\.a|\\.dylib).*"); if(libname.find(file)) { |