summaryrefslogtreecommitdiffstats
path: root/Source/cmExportFileGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-01-08 20:06:24 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-01-10 17:06:03 (GMT)
commitcb1afbf466d126f233e93b2cdfa3f5c5dfe5b8f7 (patch)
tree0783f32086c906b66e420b9c948379a7e5b4d36b /Source/cmExportFileGenerator.cxx
parentf99196dc0cde6e5868cc74c603a78b10f1ba324a (diff)
downloadCMake-cb1afbf466d126f233e93b2cdfa3f5c5dfe5b8f7.zip
CMake-cb1afbf466d126f233e93b2cdfa3f5c5dfe5b8f7.tar.gz
CMake-cb1afbf466d126f233e93b2cdfa3f5c5dfe5b8f7.tar.bz2
Don't pass a position when determining if a target name is a literal.
The lastPos refers to a position in a different string.
Diffstat (limited to 'Source/cmExportFileGenerator.cxx')
-rw-r--r--Source/cmExportFileGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmExportFileGenerator.cxx b/Source/cmExportFileGenerator.cxx
index 90c0c41..56b088e 100644
--- a/Source/cmExportFileGenerator.cxx
+++ b/Source/cmExportFileGenerator.cxx
@@ -270,7 +270,7 @@ cmExportFileGenerator::ResolveTargetsInGeneratorExpressions(
}
const std::string targetName = input.substr(nameStartPos,
endPos - nameStartPos);
- if(targetName.find("$<", lastPos) != input.npos)
+ if(targetName.find("$<") != input.npos)
{
errorString = "$<TARGET_NAME:...> requires its parameter to be a "
"literal.";