diff options
author | Ken Martin <ken.martin@kitware.com> | 2003-12-08 16:10:48 -0500 |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2003-12-08 16:10:48 -0500 |
commit | 06092a31fd73d2752d1697b32fc93fb3b25c6920 (patch) | |
tree | 212c2ba90af214f8c84f4b97c1ea122b75ebe63e /Source/cmSystemTools.cxx | |
parent | 2b957198fdb0d75a86b9a3804a5ffed14b4f9fbd (diff) | |
download | cmake-06092a31fd73d2752d1697b32fc93fb3b25c6920.tar.gz |
bug fix to escaped semicolons in arguments
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r-- | Source/cmSystemTools.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 8d1640d5c7..48ba54e27b 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); } |