Browse Source

Merge topic 'ninja-escape-line-breaks'

3b4436a Ninja: escape line breaks in literals
Brad King 13 years ago
parent
commit
a95968fec9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Source/cmGlobalNinjaGenerator.cxx

+ 1 - 0
Source/cmGlobalNinjaGenerator.cxx

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