diff options
Diffstat (limited to 'Source/cmMakefileExecutableTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileExecutableTargetGenerator.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/cmMakefileExecutableTargetGenerator.cxx b/Source/cmMakefileExecutableTargetGenerator.cxx index 9477ebf..6a75902 100644 --- a/Source/cmMakefileExecutableTargetGenerator.cxx +++ b/Source/cmMakefileExecutableTargetGenerator.cxx @@ -299,9 +299,11 @@ void cmMakefileExecutableTargetGenerator::WriteExecutableRule(bool relink) if(!relink) { this->LocalGenerator - ->AppendCustomCommands(commands, this->Target->GetPreBuildCommands()); + ->AppendCustomCommands(commands, this->Target->GetPreBuildCommands(), + this->Target); this->LocalGenerator - ->AppendCustomCommands(commands, this->Target->GetPreLinkCommands()); + ->AppendCustomCommands(commands, this->Target->GetPreLinkCommands(), + this->Target); } // Determine whether a link script will be used. @@ -436,7 +438,8 @@ void cmMakefileExecutableTargetGenerator::WriteExecutableRule(bool relink) if(!relink) { this->LocalGenerator-> - AppendCustomCommands(commands, this->Target->GetPostBuildCommands()); + AppendCustomCommands(commands, this->Target->GetPostBuildCommands(), + this->Target); } // Write the build rule. |