diff options
author | Ken Martin <ken.martin@kitware.com> | 2005-02-28 21:11:21 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2005-02-28 21:11:21 (GMT) |
commit | a5501b11f63c9fbde9a849a362ed6583b75abd75 (patch) | |
tree | 866740e4243a70436fd03c2ad058d8c967dbab86 /Source/cmLocalVisualStudio6Generator.cxx | |
parent | a65da51919628d673de1135c5b4dcd72dcd0a809 (diff) | |
download | CMake-a5501b11f63c9fbde9a849a362ed6583b75abd75.zip CMake-a5501b11f63c9fbde9a849a362ed6583b75abd75.tar.gz CMake-a5501b11f63c9fbde9a849a362ed6583b75abd75.tar.bz2 |
FIXTHIS THING: fix the bug
Diffstat (limited to 'Source/cmLocalVisualStudio6Generator.cxx')
-rw-r--r-- | Source/cmLocalVisualStudio6Generator.cxx | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/Source/cmLocalVisualStudio6Generator.cxx b/Source/cmLocalVisualStudio6Generator.cxx index 6c27d95..1425aba 100644 --- a/Source/cmLocalVisualStudio6Generator.cxx +++ b/Source/cmLocalVisualStudio6Generator.cxx @@ -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"); } |