Ninja: escape line breaks in literals

BUG: 13591
This commit is contained in:
Peter Kümmel 2013-03-09 12:04:16 +01:00
parent 751f712e1a
commit 3b4436aa90
1 changed files with 1 additions and 0 deletions

View File

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