ENH: add a fix for spaces in the path again...

This commit is contained in:
Bill Hoffman 2007-02-27 13:34:12 -05:00
parent 08ccfacf03
commit 5ae48cf852
1 changed files with 9 additions and 2 deletions

View File

@ -1766,8 +1766,15 @@ cmLocalUnixMakefileGenerator3
if (tgt && tgt[0] != '\0')
{
std::string tgt2 = this->Convert(tgt,HOME_OUTPUT,MAKEFILE);
tgt2 = this->ConvertToMakeTarget(tgt2.c_str());
tgt2 = this->EscapeForShell(tgt2.c_str());
tgt2 = this->ConvertToMakeTarget(tgt2.c_str());
bool forceOn = cmSystemTools::GetForceUnixPaths();
#if !defined(WIN32) || defined(CYGWIN)
forceOn = true;
#endif
if(forceOn )
{
tgt2 = cmSystemTools::EscapeForUnixShell(tgt2);
}
cmd += tgt2;
}
return cmd;