summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-01-30 22:31:54 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-01-31 10:18:52 (GMT)
commit7ceeba992b4fb35ca05760b3170e68f41dfc1bb5 (patch)
treee192231dc8a53880740c0da5a2d13cc50f93a07c /Source
parent30268b46f8237f25c82858693c000f5da8ede6ad (diff)
downloadCMake-7ceeba992b4fb35ca05760b3170e68f41dfc1bb5.zip
CMake-7ceeba992b4fb35ca05760b3170e68f41dfc1bb5.tar.gz
CMake-7ceeba992b4fb35ca05760b3170e68f41dfc1bb5.tar.bz2
Advance more when preprocessing exported strings.
When evaluating TARGET_PROPERTY here, we can skip to the comma location. We need to calculate it though as the string may have just been changed.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmExportFileGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmExportFileGenerator.cxx b/Source/cmExportFileGenerator.cxx
index dbe64e9..e772327 100644
--- a/Source/cmExportFileGenerator.cxx
+++ b/Source/cmExportFileGenerator.cxx
@@ -391,7 +391,7 @@ cmExportFileGenerator::ResolveTargetsInGeneratorExpression(
{
input.replace(nameStartPos, commaPos - nameStartPos, targetName);
}
- lastPos = pos + targetName.size();
+ lastPos = nameStartPos + targetName.size() + 1;
}
std::string errorString;