diff options
author | Brad King <brad.king@kitware.com> | 2013-03-13 17:42:00 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2013-03-13 17:42:00 (GMT) |
commit | a95968fec95bf5feacb81871b3a2e052c5364345 (patch) | |
tree | 29b6a8ff52d1230fa3da51fbcf52880f8825450a /Source | |
parent | 18029b1e77be2b8df64ab6240c67b00c09ed8ce2 (diff) | |
parent | 3b4436aa90ba9f56085667d36c0a6c24c55c0cd7 (diff) | |
download | CMake-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.cxx | 1 |
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; } |