mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
cmMakefile: Remove unused AddUtilityCommand overload
This commit is contained in:
@@ -1171,35 +1171,6 @@ bool cmMakefile::AppendCustomCommandToOutput(
|
||||
return false;
|
||||
}
|
||||
|
||||
cmTarget* cmMakefile::AddUtilityCommand(
|
||||
const std::string& utilityName, TargetOrigin origin, bool excludeFromAll,
|
||||
const std::vector<std::string>& depends, const char* workingDirectory,
|
||||
const char* command, const char* arg1, const char* arg2, const char* arg3,
|
||||
const char* arg4)
|
||||
{
|
||||
// Construct the command line for the custom command.
|
||||
cmCustomCommandLine commandLine;
|
||||
commandLine.push_back(command);
|
||||
if (arg1) {
|
||||
commandLine.push_back(arg1);
|
||||
}
|
||||
if (arg2) {
|
||||
commandLine.push_back(arg2);
|
||||
}
|
||||
if (arg3) {
|
||||
commandLine.push_back(arg3);
|
||||
}
|
||||
if (arg4) {
|
||||
commandLine.push_back(arg4);
|
||||
}
|
||||
cmCustomCommandLines commandLines;
|
||||
commandLines.push_back(std::move(commandLine));
|
||||
|
||||
// Call the real signature of this method.
|
||||
return this->AddUtilityCommand(utilityName, origin, excludeFromAll,
|
||||
workingDirectory, depends, commandLines);
|
||||
}
|
||||
|
||||
cmTarget* cmMakefile::AddUtilityCommand(
|
||||
const std::string& utilityName, TargetOrigin origin, bool excludeFromAll,
|
||||
const char* workingDirectory, const std::vector<std::string>& depends,
|
||||
|
||||
@@ -243,14 +243,6 @@ public:
|
||||
* Add a utility to the build. A utility target is a command that
|
||||
* is run every time the target is built.
|
||||
*/
|
||||
cmTarget* AddUtilityCommand(const std::string& utilityName,
|
||||
TargetOrigin origin, bool excludeFromAll,
|
||||
const std::vector<std::string>& depends,
|
||||
const char* workingDirectory,
|
||||
const char* command, const char* arg1 = nullptr,
|
||||
const char* arg2 = nullptr,
|
||||
const char* arg3 = nullptr,
|
||||
const char* arg4 = nullptr);
|
||||
cmTarget* AddUtilityCommand(
|
||||
const std::string& utilityName, TargetOrigin origin, bool excludeFromAll,
|
||||
const char* workingDirectory, const std::vector<std::string>& depends,
|
||||
|
||||
Reference in New Issue
Block a user