From 70c39c845f2f2909413d8bcb19a6b72e19ff83c4 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Sun, 19 Feb 2012 03:07:21 +0000 Subject: [PATCH] Ninja: Shell encode the command used in custom commands --- Source/cmLocalNinjaGenerator.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/cmLocalNinjaGenerator.cxx b/Source/cmLocalNinjaGenerator.cxx index 32f3833cc..687dbb87d 100644 --- a/Source/cmLocalNinjaGenerator.cxx +++ b/Source/cmLocalNinjaGenerator.cxx @@ -334,7 +334,8 @@ void cmLocalNinjaGenerator::AppendCustomCommandLines(const cmCustomCommand *cc, cmdLines.push_back(cdCmd.str()); } for (unsigned i = 0; i != ccg.GetNumberOfCommands(); ++i) { - cmdLines.push_back(ccg.GetCommand(i)); + cmdLines.push_back(this->ConvertToOutputFormat(ccg.GetCommand(i).c_str(), + SHELL)); std::string& cmd = cmdLines.back(); ccg.AppendArguments(i, cmd); }