diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 3bb172979..e0fc622fa 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -1294,7 +1294,7 @@ void cmLocalGenerator::OutputLinkLibraries(std::ostream& fout, { cmStdString& linkItem = *lib; // check to see if the link item has a -l already - cmsys::RegularExpression reg("^([ \t]*\\-[lWRB])|([ \t]*\\-framework)|(\\${)|([ \t]*\\-pthread)|([ \t]*`)"); + cmsys::RegularExpression reg("^([ \t]*\\-[lLWRB])|([ \t]*\\-framework)|(\\${)|([ \t]*\\-pthread)|([ \t]*`)"); if(!reg.find(linkItem)) { librariesLinked += libLinkFlag;