summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-01-07 13:16:54 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-01-07 13:17:01 (GMT)
commit628f3a51f8cf31e53749220fdaba367ee4e77a58 (patch)
tree454de38d2dcbb862884292f307db01868fe009ea /Source
parent18b1ccfa511d59c7a30e91da9a6cce99d2ebc50d (diff)
parent06f921d9f664b5819a031f85a923e28b16c4ade3 (diff)
downloadCMake-628f3a51f8cf31e53749220fdaba367ee4e77a58.zip
CMake-628f3a51f8cf31e53749220fdaba367ee4e77a58.tar.gz
CMake-628f3a51f8cf31e53749220fdaba367ee4e77a58.tar.bz2
Merge topic 'export-target-name-subst'
06f921d9f6 export: Fix replacement of multiple TARGET_NAME expressions Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5666
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 a853bb1..113751a 100644
--- a/Source/cmExportFileGenerator.cxx
+++ b/Source/cmExportFileGenerator.cxx
@@ -707,7 +707,7 @@ void cmExportFileGenerator::ResolveTargetsInGeneratorExpression(
break;
}
input.replace(pos, endPos - pos + 1, targetName);
- lastPos = endPos;
+ lastPos = pos + targetName.size();
}
pos = 0;