ENH: Cleaned up signature of cmMakefile::AddUtilityCommand. It is not valid to have an output from a utility rule and no calls to the method asked for an output anyway. The argument has been removed.

This commit is contained in:
Brad King
2006-09-28 13:55:26 -04:00
parent 506dca3990
commit 7d2de52c1a
11 changed files with 17 additions and 43 deletions
+3 -13
View File
@@ -206,8 +206,8 @@ void CCONV cmAddUtilityCommand(void *arg, const char* utilityName,
int all,
int numDepends,
const char **depends,
int numOutputs,
const char **outputs)
int,
const char **)
{
// Get the makefile instance. Perform an extra variable expansion
// now because the API caller expects it.
@@ -234,19 +234,9 @@ void CCONV cmAddUtilityCommand(void *arg, const char* utilityName,
depends2.push_back(mf->ExpandVariablesInString(expand));
}
// Only one output is allowed.
const char* output = 0;
std::string outputStr;
if(numOutputs > 0)
{
expand = outputs[0];
outputStr = mf->ExpandVariablesInString(expand);
output = outputStr.c_str();
}
// Pass the call to the makefile instance.
mf->AddUtilityCommand(utilityName, (all ? true : false),
output, 0, depends2, commandLines);
0, depends2, commandLines);
}
void CCONV cmAddCustomCommand(void *arg, const char* source,
const char* command,