Browse Source

Ninja: escape line breaks in literals

BUG: 13591
Peter Kümmel 12 years ago
parent
commit
3b4436aa90
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Source/cmGlobalNinjaGenerator.cxx

+ 1 - 0
Source/cmGlobalNinjaGenerator.cxx

@@ -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;
 }
 }