diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-01-30 22:31:54 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-01-31 10:18:52 (GMT) |
commit | 7ceeba992b4fb35ca05760b3170e68f41dfc1bb5 (patch) | |
tree | e192231dc8a53880740c0da5a2d13cc50f93a07c /Source | |
parent | 30268b46f8237f25c82858693c000f5da8ede6ad (diff) | |
download | CMake-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.cxx | 2 |
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; |