summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileLibraryTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-02-10 13:50:33 (GMT)
committerBrad King <brad.king@kitware.com>2009-02-10 13:50:33 (GMT)
commitc895d9f2e0dac609a8e3e126cc05a0400e9740a9 (patch)
treebeb15f3e759df34a6fbf6dd66d465f0c5be6112c /Source/cmMakefileLibraryTargetGenerator.cxx
parent13f9bb646d5ce506efb8fc2d36b6f9ce2268fb2e (diff)
downloadCMake-c895d9f2e0dac609a8e3e126cc05a0400e9740a9.zip
CMake-c895d9f2e0dac609a8e3e126cc05a0400e9740a9.tar.gz
CMake-c895d9f2e0dac609a8e3e126cc05a0400e9740a9.tar.bz2
ENH: Give target in which custom commands build
This gives the cmTarget instance for which custom command rules are being generated to cmLocalUnixMakefileGenerator3::AppendCustomCommands. It will be useful in the future.
Diffstat (limited to 'Source/cmMakefileLibraryTargetGenerator.cxx')
-rw-r--r--Source/cmMakefileLibraryTargetGenerator.cxx9
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.