mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-16 22:37:30 +08:00

committed by
Brad King

parent
f3d9a82110
commit
5a41d926dd
@@ -415,7 +415,9 @@ void cmGhsMultiTargetGenerator::WriteCustomCommandsHelper(
|
|||||||
#endif
|
#endif
|
||||||
// Echo the custom command's comment text.
|
// Echo the custom command's comment text.
|
||||||
if (cm::optional<std::string> comment = ccg.GetComment()) {
|
if (cm::optional<std::string> comment = ccg.GetComment()) {
|
||||||
std::string echocmd = cmStrCat("echo ", *comment);
|
std::string escapedComment = this->LocalGenerator->EscapeForShell(
|
||||||
|
*comment, ccg.GetCC().GetEscapeAllowMakeVars());
|
||||||
|
std::string echocmd = cmStrCat("echo ", escapedComment);
|
||||||
cmdLines.push_back(std::move(echocmd));
|
cmdLines.push_back(std::move(echocmd));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user