BUG: quote the echo commands
This commit is contained in:
parent
dc15248b40
commit
fe4eb49014
|
@ -2083,9 +2083,16 @@ void cmUnixMakefileGenerator::OutputMakeRule(std::ostream& fout,
|
||||||
{
|
{
|
||||||
std::string echostring = replace;
|
std::string echostring = replace;
|
||||||
cmSystemTools::ReplaceString(echostring, "\n\t", "\n\techo ");
|
cmSystemTools::ReplaceString(echostring, "\n\t", "\n\techo ");
|
||||||
// let's try to see what happens without \"
|
// for unix we want to quote the output of echo
|
||||||
// fout << "\techo \"" << echostring.c_str() << "\"\n";
|
// for nmake and borland, the echo should not be quoted
|
||||||
fout << "\techo " << echostring.c_str() << "\n";
|
if(strcmp(this->GetName(), "Unix Makefiles") == 0)
|
||||||
|
{
|
||||||
|
fout << "\techo \"" << echostring.c_str() << "\"\n";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
fout << "\techo " << echostring.c_str() << "\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
fout << "\t" << replace.c_str() << "\n";
|
fout << "\t" << replace.c_str() << "\n";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue