Merge topic 'ninja-escape-line-breaks'
3b4436a
Ninja: escape line breaks in literals
This commit is contained in:
commit
a95968fec9
|
@ -85,6 +85,7 @@ std::string cmGlobalNinjaGenerator::EncodeLiteral(const std::string &lit)
|
||||||
{
|
{
|
||||||
std::string result = lit;
|
std::string result = lit;
|
||||||
cmSystemTools::ReplaceString(result, "$", "$$");
|
cmSystemTools::ReplaceString(result, "$", "$$");
|
||||||
|
cmSystemTools::ReplaceString(result, "\n", "$\n");
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue