Ninja: escape line breaks in literals
BUG: 13591
This commit is contained in:
parent
751f712e1a
commit
3b4436aa90
@ -83,6 +83,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…
x
Reference in New Issue
Block a user