summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-03-13 17:42:00 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-03-13 17:42:00 (GMT)
commita95968fec95bf5feacb81871b3a2e052c5364345 (patch)
tree29b6a8ff52d1230fa3da51fbcf52880f8825450a /Source
parent18029b1e77be2b8df64ab6240c67b00c09ed8ce2 (diff)
parent3b4436aa90ba9f56085667d36c0a6c24c55c0cd7 (diff)
downloadCMake-a95968fec95bf5feacb81871b3a2e052c5364345.zip
CMake-a95968fec95bf5feacb81871b3a2e052c5364345.tar.gz
CMake-a95968fec95bf5feacb81871b3a2e052c5364345.tar.bz2
Merge topic 'ninja-escape-line-breaks'
3b4436a Ninja: escape line breaks in literals
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGlobalNinjaGenerator.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx
index 01c685d..fa277b1 100644
--- a/Source/cmGlobalNinjaGenerator.cxx
+++ b/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;
}