FIXTHIS THING: fix the bug

This commit is contained in:
Ken Martin 2005-02-28 16:11:21 -05:00
parent a65da51919
commit a5501b11f6
1 changed files with 7 additions and 13 deletions

View File

@ -624,10 +624,6 @@ cmLocalVisualStudio6Generator::CreateTargetRules(const cmTarget &target,
customRuleCode += "PreLink_Cmds=";
init = true;
}
else
{
customRuleCode += "\\\n\t";
}
customRuleCode += this->ConstructScript(cr->GetCommandLines(), "\\\n\t");
}
@ -641,13 +637,15 @@ cmLocalVisualStudio6Generator::CreateTargetRules(const cmTarget &target,
customRuleCode += "PreLink_Cmds=";
init = true;
}
else
{
customRuleCode += "\\\n\t";
}
customRuleCode += this->ConstructScript(cr->GetCommandLines(), "\\\n\t");
}
// remove trailing \\\n\t and replace with \n as this
// is a new command and not a continuation
if(init)
{
customRuleCode.erase(customRuleCode.size()-3, 3);
customRuleCode += "\n";
}
// do the post build rules
init = false;
for (std::vector<cmCustomCommand>::const_iterator cr =
@ -660,10 +658,6 @@ cmLocalVisualStudio6Generator::CreateTargetRules(const cmTarget &target,
customRuleCode += "PostBuild_Cmds=";
init = true;
}
else
{
customRuleCode += "\\\n\t";
}
customRuleCode += this->ConstructScript(cr->GetCommandLines(), "\\\n\t");
}