summaryrefslogtreecommitdiffstats
path: root/Source/cmCPluginAPI.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-09-28 17:55:26 (GMT)
committerBrad King <brad.king@kitware.com>2006-09-28 17:55:26 (GMT)
commit7d2de52c1a617a8a559e5c749ce5e6abd3739f01 (patch)
tree3ae6b364d9f04d7cdcacd6ddc8ddd8f9e9bc0063 /Source/cmCPluginAPI.cxx
parent506dca3990e56281bd0eecd6c26afe6d36caab6e (diff)
downloadCMake-7d2de52c1a617a8a559e5c749ce5e6abd3739f01.zip
CMake-7d2de52c1a617a8a559e5c749ce5e6abd3739f01.tar.gz
CMake-7d2de52c1a617a8a559e5c749ce5e6abd3739f01.tar.bz2
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.
Diffstat (limited to 'Source/cmCPluginAPI.cxx')
-rw-r--r--Source/cmCPluginAPI.cxx16
1 files changed, 3 insertions, 13 deletions
diff --git a/Source/cmCPluginAPI.cxx b/Source/cmCPluginAPI.cxx
index a03a70a..508a83a 100644
--- a/Source/cmCPluginAPI.cxx
+++ b/Source/cmCPluginAPI.cxx
@@ -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,