mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-15 03:30:39 -06:00
Don't pass a position when determining if a target name is a literal.
The lastPos refers to a position in a different string.
This commit is contained in:
@@ -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.";
|
||||
|
||||
Reference in New Issue
Block a user