summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2003-06-05 20:45:06 (GMT)
committerKen Martin <ken.martin@kitware.com>2003-06-05 20:45:06 (GMT)
commit61a3e4fb808b2643689067a31aa7433d169ab870 (patch)
treec28c6f944475ac293dba6cb57ab928b4629c5526 /Source/cmMakefile.cxx
parentf698e306a7cd44e01d63924846bcb01e6c3e1733 (diff)
downloadCMake-61a3e4fb808b2643689067a31aa7433d169ab870.zip
CMake-61a3e4fb808b2643689067a31aa7433d169ab870.tar.gz
CMake-61a3e4fb808b2643689067a31aa7433d169ab870.tar.bz2
more custom command
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx16
1 files changed, 14 insertions, 2 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 0fe71cf..b4db084 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -496,7 +496,7 @@ void cmMakefile::AddCustomCommand(const char* source,
else
{
this->AddCustomCommandToTarget(target, command, commandArgs,
- cmTarget::POST_BUILD, comment);
+ cmTarget::POST_BUILD, comment, depends);
}
}
@@ -619,6 +619,18 @@ AddCustomCommandToTarget(const char* target, const char* command,
cmTarget::CustomCommandType type,
const char *comment)
{
+ std::vector<std::string> empty;
+ this->AddCustomCommandToTarget(target,command,commandArgs,type,
+ comment, empty);
+}
+
+void cmMakefile::
+AddCustomCommandToTarget(const char* target, const char* command,
+ const std::vector<std::string>& commandArgs,
+ cmTarget::CustomCommandType type,
+ const char *comment,
+ const std::vector<std::string>& depends)
+{
// find the target,
if (m_Targets.find(target) != m_Targets.end())
{
@@ -637,7 +649,7 @@ AddCustomCommandToTarget(const char* target, const char* command,
combinedArgs += " ";
}
- cmCustomCommand cc(c.c_str(),combinedArgs.c_str());
+ cmCustomCommand cc(c.c_str(),combinedArgs.c_str(),depends,0);
if ( comment && comment[0] )
{
cc.SetComment(comment);