BUG: Do not recognize ':' in a library name

In cmComputeLinkInformation we construct regular expressions to
recognize library file names.  This fixes the expressions to not allow a
colon (':') in the file name so that "-l:libfoo.a" is left alone.
This commit is contained in:
Brad King 2009-07-28 08:07:52 -04:00
parent 87c3e1662c
commit 06a1e35d8a
1 changed files with 1 additions and 1 deletions

View File

@ -875,7 +875,7 @@ void cmComputeLinkInformation::ComputeItemParserInfo()
reg += "|"; reg += "|";
} }
reg += ")"; reg += ")";
reg += "([^/]*)"; reg += "([^/:]*)";
// Create a regex to match any library name. // Create a regex to match any library name.
std::string reg_any = reg; std::string reg_any = reg;