mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-01 03:29:18 -05:00
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:
+3
-13
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user