瀏覽代碼

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.
Stephen Kelly 12 年之前
父節點
當前提交
7ceeba992b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Source/cmExportFileGenerator.cxx

+ 1 - 1
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;