From 77c538d12be20902b2899577e7f1eaead02d2024 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Wed, 19 Feb 2003 12:54:25 -0500 Subject: [PATCH] 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. --- Source/cmLocalUnixMakefileGenerator.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx index 92e4183fb..539a910f3 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)) {