summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/cmSystemTools.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 8d1640d..48ba54e 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -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);
}