summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-02-19 17:54:25 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-02-19 17:54:25 (GMT)
commit77c538d12be20902b2899577e7f1eaead02d2024 (patch)
tree8638d096e4ecdd76d69b7e0d91eb85b602e6af93
parent610da00d51bb761325b2f93e202094ae1a3ed4c1 (diff)
downloadCMake-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.cxx2
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))
{