summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-06-16 20:33:24 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-06-16 20:33:24 (GMT)
commitf7ddfbe1fd70d1153439d350ac1e6223aef0fdfc (patch)
treefb1c631c03e160063f6263698a6731c64259d512 /Source
parent73fe7c316a0701ae4f4cf5259a0d1a871a200a9a (diff)
downloadCMake-f7ddfbe1fd70d1153439d350ac1e6223aef0fdfc.zip
CMake-f7ddfbe1fd70d1153439d350ac1e6223aef0fdfc.tar.gz
CMake-f7ddfbe1fd70d1153439d350ac1e6223aef0fdfc.tar.bz2
ENH: Add extra argument
Diffstat (limited to 'Source')
-rw-r--r--Source/cmMakefile.cxx7
-rw-r--r--Source/cmMakefile.h3
2 files changed, 8 insertions, 2 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 37238bf..3f286d5 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -666,7 +666,8 @@ void cmMakefile::AddUtilityCommand(const char* utilityName, bool all,
const char* command,
const char* arg1,
const char* arg2,
- const char* arg3)
+ const char* arg3,
+ const char* arg4)
{
// Construct the command line for the custom command.
cmCustomCommandLine commandLine;
@@ -683,6 +684,10 @@ void cmMakefile::AddUtilityCommand(const char* utilityName, bool all,
{
commandLine.push_back(arg3);
}
+ if(arg4)
+ {
+ commandLine.push_back(arg4);
+ }
cmCustomCommandLines commandLines;
commandLines.push_back(commandLine);
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h
index 27840fb..5d00c93 100644
--- a/Source/cmMakefile.h
+++ b/Source/cmMakefile.h
@@ -173,7 +173,8 @@ public:
const char* command,
const char* arg1=0,
const char* arg2=0,
- const char* arg3=0);
+ const char* arg3=0,
+ const char* arg4=0);
void AddUtilityCommand(const char* utilityName, bool all,
const char* output,
const std::vector<std::string>& depends,