ENH: Command should also be quoted

This commit is contained in:
Andy Cedilnik 2003-10-28 15:26:00 -05:00
parent 77afae681a
commit b79c2f5a4c
1 changed files with 5 additions and 2 deletions

View File

@ -672,11 +672,14 @@ int cmake::CMakeCommand(std::vector<std::string>& args)
else if (args[1] == "chdir" && args.size() >= 4)
{
std::string directory = args[2];
std::string command = args[3];
std::string command = "\"";
command += args[3];
command += "\"";
for (std::string::size_type cc = 4; cc < args.size(); cc ++)
{
command += " ";
command += " \"";
command += args[cc];
command += "\"";
}
int retval = 0;