diff options
Diffstat (limited to 'Source/cmMakefileLibraryTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileLibraryTargetGenerator.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/cmMakefileLibraryTargetGenerator.cxx b/Source/cmMakefileLibraryTargetGenerator.cxx index a67b44a..7e5edc4 100644 --- a/Source/cmMakefileLibraryTargetGenerator.cxx +++ b/Source/cmMakefileLibraryTargetGenerator.cxx @@ -600,9 +600,11 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules 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. @@ -867,7 +869,8 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules if(!relink) { this->LocalGenerator-> - AppendCustomCommands(commands, this->Target->GetPostBuildCommands()); + AppendCustomCommands(commands, this->Target->GetPostBuildCommands(), + this->Target); } // Write the build rule. |