diff options
author | Peter Kümmel <syntheticpp@gmx.net> | 2013-03-09 11:04:16 (GMT) |
---|---|---|
committer | Peter Kümmel <syntheticpp@gmx.net> | 2013-03-09 11:06:24 (GMT) |
commit | 3b4436aa90ba9f56085667d36c0a6c24c55c0cd7 (patch) | |
tree | 9b40372505a6663fe638fa9f79166f5d40cad7e9 /Source/cmGlobalNinjaGenerator.cxx | |
parent | 751f712e1ac936afb42acc49f1f19c768d3229b5 (diff) | |
download | CMake-3b4436aa90ba9f56085667d36c0a6c24c55c0cd7.zip CMake-3b4436aa90ba9f56085667d36c0a6c24c55c0cd7.tar.gz CMake-3b4436aa90ba9f56085667d36c0a6c24c55c0cd7.tar.bz2 |
Ninja: escape line breaks in literals
BUG: 13591
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.cxx')
-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 a999847..b02457d 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; } |