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,