diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 27b53d32f..1f68b70de 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -1862,7 +1862,7 @@ void cmSystemTools::ExpandListArguments(std::vector const& argument std::string::size_type pos = newarg.find("\\;"); if(pos != std::string::npos) { - newarg[pos] = ' '; + newarg.erase(pos, 1); } newargs.push_back(newarg); }