summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorDaniel Eiband <daniel.eiband@brainlab.com>2019-09-20 23:17:15 (GMT)
committerBrad King <brad.king@kitware.com>2019-09-26 14:04:03 (GMT)
commit5a06efda05feda02511592c76134ee8ed3e8b650 (patch)
tree4bd8dca46fcc5f1af0bb5c92792ab33b103e02f6 /Source/cmMakefile.cxx
parentea1bed34b2ba16f3971b90996dc345834f0d9699 (diff)
downloadCMake-5a06efda05feda02511592c76134ee8ed3e8b650.zip
CMake-5a06efda05feda02511592c76134ee8ed3e8b650.tar.gz
CMake-5a06efda05feda02511592c76134ee8ed3e8b650.tar.bz2
cmMakefile: Remove AddUtilityCommand overload without byproducts
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx18
1 files changed, 2 insertions, 16 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 2e1c821..a528fc6 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -1213,20 +1213,6 @@ cmUtilityOutput cmMakefile::GetUtilityOutput(cmTarget* target)
cmTarget* cmMakefile::AddUtilityCommand(
const std::string& utilityName, cmCommandOrigin origin, bool excludeFromAll,
- const char* workingDirectory, const std::vector<std::string>& depends,
- const cmCustomCommandLines& commandLines, bool escapeOldStyle,
- const char* comment, bool uses_terminal, bool command_expand_lists,
- const std::string& job_pool)
-{
- std::vector<std::string> no_byproducts;
- return this->AddUtilityCommand(
- utilityName, origin, excludeFromAll, workingDirectory, no_byproducts,
- depends, commandLines, escapeOldStyle, comment, uses_terminal,
- command_expand_lists, job_pool);
-}
-
-cmTarget* cmMakefile::AddUtilityCommand(
- const std::string& utilityName, cmCommandOrigin origin, bool excludeFromAll,
const char* workingDirectory, const std::vector<std::string>& byproducts,
const std::vector<std::string>& depends,
const cmCustomCommandLines& commandLines, bool escapeOldStyle,
@@ -1237,8 +1223,8 @@ cmTarget* cmMakefile::AddUtilityCommand(
this->AddNewUtilityTarget(utilityName, origin, excludeFromAll);
// Validate custom commands.
- if (!this->ValidateCustomCommand(commandLines) ||
- (commandLines.empty() && depends.empty())) {
+ if ((commandLines.empty() && depends.empty()) ||
+ !this->ValidateCustomCommand(commandLines)) {
return target;
}