ENH: big change in the path handling, one function CreateOutputPath is used to escape spaces and convert to the native path type

This commit is contained in:
Bill Hoffman
2002-02-22 13:38:33 -05:00
parent bfcf4b02bf
commit 8c3400dc6b
11 changed files with 274 additions and 276 deletions

View File

@@ -34,7 +34,7 @@ bool cmExecProgramCommand::InitialPass(std::vector<std::string> const& argsIn)
cmSystemTools::MakeDirectory(args[1].c_str());
std::string command;
command = "cd ";
command += args[1].c_str();
command += cmSystemTools::ConvertToOutputPath(args[1].c_str());
command += " && ";
command += args[0].c_str();
cmSystemTools::RunCommand(command.c_str(), output);