summaryrefslogtreecommitdiff
path: root/Source/cmComputeLinkInformation.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-07-28 08:07:52 -0400
committerBrad King <brad.king@kitware.com>2009-07-28 08:07:52 -0400
commit06a1e35d8ad34352878db12113680d4c5f2ea45f (patch)
treead7b3da9b1a2b1e063608e058d7f472fe82f33b2 /Source/cmComputeLinkInformation.cxx
parent87c3e1662cec79d49fc14bcb3bc20cc4f12f4122 (diff)
downloadcmake-06a1e35d8ad34352878db12113680d4c5f2ea45f.tar.gz
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.
Diffstat (limited to 'Source/cmComputeLinkInformation.cxx')
-rw-r--r--Source/cmComputeLinkInformation.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmComputeLinkInformation.cxx b/Source/cmComputeLinkInformation.cxx
index 1dee2a2b3c..c47f931029 100644
--- a/Source/cmComputeLinkInformation.cxx
+++ b/Source/cmComputeLinkInformation.cxx
@@ -875,7 +875,7 @@ void cmComputeLinkInformation::ComputeItemParserInfo()
reg += "|";
}
reg += ")";
- reg += "([^/]*)";
+ reg += "([^/:]*)";
// Create a regex to match any library name.
std::string reg_any = reg;