mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user