ENH: fix for spaces in the path and mingw

This commit is contained in:
Bill Hoffman 2007-02-27 12:10:42 -05:00
parent 4d9bc90e58
commit 0ce8c158cc

View File

@ -1765,8 +1765,9 @@ cmLocalUnixMakefileGenerator3
// Add the target. // Add the target.
if (tgt && tgt[0] != '\0') if (tgt && tgt[0] != '\0')
{ {
std::string tgt2 = this->Convert(tgt,HOME_OUTPUT,SHELL); std::string tgt2 = this->Convert(tgt,HOME_OUTPUT,MAKEFILE);
tgt2 = this->ConvertToMakeTarget(tgt2.c_str()); tgt2 = this->ConvertToMakeTarget(tgt2.c_str());
tgt2 = this->EscapeForShell(tgt2.c_str());
cmd += tgt2; cmd += tgt2;
} }
return cmd; return cmd;