From f7ddfbe1fd70d1153439d350ac1e6223aef0fdfc Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Thu, 16 Jun 2005 16:33:24 -0400 Subject: [PATCH] ENH: Add extra argument --- Source/cmMakefile.cxx | 7 ++++++- Source/cmMakefile.h | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 37238bfd3..3f286d528 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 27840fb93..5d00c9330 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& depends,