summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalNinjaGenerator.cxx
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2012-02-19 03:07:21 (GMT)
committerPeter Collingbourne <peter@pcc.me.uk>2012-02-19 05:57:22 (GMT)
commit70c39c845f2f2909413d8bcb19a6b72e19ff83c4 (patch)
tree9f704e61de5b3aa72c84c64e70d6c28bdad1d17d /Source/cmLocalNinjaGenerator.cxx
parent0643fee2fe92b7dccc4e63be7329f6da96f2e61f (diff)
downloadCMake-70c39c845f2f2909413d8bcb19a6b72e19ff83c4.zip
CMake-70c39c845f2f2909413d8bcb19a6b72e19ff83c4.tar.gz
CMake-70c39c845f2f2909413d8bcb19a6b72e19ff83c4.tar.bz2
Ninja: Shell encode the command used in custom commands
Diffstat (limited to 'Source/cmLocalNinjaGenerator.cxx')
-rw-r--r--Source/cmLocalNinjaGenerator.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmLocalNinjaGenerator.cxx b/Source/cmLocalNinjaGenerator.cxx
index 32f3833..687dbb8 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);
}