mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-01 03:29:18 -05:00
bug fix to escaped semicolons in arguments
This commit is contained in:
@@ -905,10 +905,12 @@ void cmSystemTools::ExpandListArgument(const std::string& arg,
|
||||
}
|
||||
newarg = arg.substr(start, len);
|
||||
}
|
||||
// unescape semicolons
|
||||
std::string::size_type pos = newarg.find("\\;");
|
||||
if(pos != std::string::npos)
|
||||
while (pos != std::string::npos)
|
||||
{
|
||||
newarg.erase(pos, 1);
|
||||
pos = newarg.find("\\;");
|
||||
}
|
||||
newargs.push_back(newarg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user