summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2003-12-08 21:10:48 (GMT)
committerKen Martin <ken.martin@kitware.com>2003-12-08 21:10:48 (GMT)
commit06092a31fd73d2752d1697b32fc93fb3b25c6920 (patch)
tree212c2ba90af214f8c84f4b97c1ea122b75ebe63e
parent2b957198fdb0d75a86b9a3804a5ffed14b4f9fbd (diff)
downloadCMake-06092a31fd73d2752d1697b32fc93fb3b25c6920.zip
CMake-06092a31fd73d2752d1697b32fc93fb3b25c6920.tar.gz
CMake-06092a31fd73d2752d1697b32fc93fb3b25c6920.tar.bz2
bug fix to escaped semicolons in arguments
-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);
}