summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator3.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/cmLocalUnixMakefileGenerator3.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/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx
index 3148d37..099ea98 100644
--- a/Source/cmLocalUnixMakefileGenerator3.cxx
+++ b/Source/cmLocalUnixMakefileGenerator3.cxx
@@ -954,12 +954,13 @@ void
cmLocalUnixMakefileGenerator3
::AppendCustomCommands(std::vector<std::string>& commands,
const std::vector<cmCustomCommand>& ccs,
+ cmTarget* target,
cmLocalGenerator::RelativeRoot relative)
{
for(std::vector<cmCustomCommand>::const_iterator i = ccs.begin();
i != ccs.end(); ++i)
{
- this->AppendCustomCommand(commands, *i, true, relative);
+ this->AppendCustomCommand(commands, *i, target, true, relative);
}
}
@@ -967,10 +968,13 @@ cmLocalUnixMakefileGenerator3
void
cmLocalUnixMakefileGenerator3
::AppendCustomCommand(std::vector<std::string>& commands,
- const cmCustomCommand& cc, bool echo_comment,
+ const cmCustomCommand& cc,
+ cmTarget* target,
+ bool echo_comment,
cmLocalGenerator::RelativeRoot relative,
std::ostream* content)
{
+ static_cast<void>(target); // Future use
// Optionally create a command to display the custom command's
// comment text. This is used for pre-build, pre-link, and
// post-build command comments. Custom build step commands have
@@ -1621,9 +1625,11 @@ void cmLocalUnixMakefileGenerator3
glIt->second.GetPostBuildCommands());
this->AppendCustomCommands(commands,
glIt->second.GetPreBuildCommands(),
+ &glIt->second,
cmLocalGenerator::START_OUTPUT);
this->AppendCustomCommands(commands,
glIt->second.GetPostBuildCommands(),
+ &glIt->second,
cmLocalGenerator::START_OUTPUT);
std::string targetName = glIt->second.GetName();
this->WriteMakeRule(ruleFileStream, targetString.c_str(),