Merge topic 'ninja-escape-line-breaks'

3b4436a Ninja: escape line breaks in literals
This commit is contained in:
Brad King 2013-03-13 13:42:00 -04:00 committed by CMake Topic Stage
commit a95968fec9
1 changed files with 1 additions and 0 deletions

View File

@ -85,6 +85,7 @@ std::string cmGlobalNinjaGenerator::EncodeLiteral(const std::string &lit)
{
std::string result = lit;
cmSystemTools::ReplaceString(result, "$", "$$");
cmSystemTools::ReplaceString(result, "\n", "$\n");
return result;
}