From 3b4436aa90ba9f56085667d36c0a6c24c55c0cd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20K=C3=BCmmel?= Date: Sat, 9 Mar 2013 12:04:16 +0100 Subject: [PATCH] Ninja: escape line breaks in literals BUG: 13591 --- Source/cmGlobalNinjaGenerator.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx index a999847c2..b02457dd5 100644 --- a/Source/cmGlobalNinjaGenerator.cxx +++ b/Source/cmGlobalNinjaGenerator.cxx @@ -83,6 +83,7 @@ std::string cmGlobalNinjaGenerator::EncodeLiteral(const std::string &lit) { std::string result = lit; cmSystemTools::ReplaceString(result, "$", "$$"); + cmSystemTools::ReplaceString(result, "\n", "$\n"); return result; }