cmMakefile: Return target from all AddUtilityCommand signatures

This commit is contained in:
Brad King 2015-07-29 10:41:30 -04:00
parent 98d6e9ec2d
commit aaa322a5cb
2 changed files with 21 additions and 19 deletions

View File

@ -1205,7 +1205,8 @@ cmMakefile::AddCustomCommandOldStyle(const std::string& target,
}
//----------------------------------------------------------------------------
void cmMakefile::AddUtilityCommand(const std::string& utilityName,
cmTarget*
cmMakefile::AddUtilityCommand(const std::string& utilityName,
bool excludeFromAll,
const std::vector<std::string>& depends,
const char* workingDirectory,
@ -1238,7 +1239,7 @@ void cmMakefile::AddUtilityCommand(const std::string& utilityName,
commandLines.push_back(commandLine);
// Call the real signature of this method.
this->AddUtilityCommand(utilityName, excludeFromAll, workingDirectory,
return this->AddUtilityCommand(utilityName, excludeFromAll, workingDirectory,
depends, commandLines);
}

View File

@ -194,7 +194,8 @@ public:
* Add a utility to the build. A utiltity target is a command that
* is run every time the target is built.
*/
void AddUtilityCommand(const std::string& utilityName, bool excludeFromAll,
cmTarget* AddUtilityCommand(const std::string& utilityName,
bool excludeFromAll,
const std::vector<std::string>& depends,
const char* workingDirectory,
const char* command,