cmMakefile: Drop unnecessary custom command APPEND check

Since commit 777ceaea94 (cmMakefile: Delay custom command creation,
2019-10-17, v3.17.0-rc1~352^2) we process custom command declarations
at generate time.  This includes the append-to-non-existing-command
check, so we do not need it at configure time.
This commit is contained in:
Brad King
2020-10-07 14:49:30 -04:00
parent 142a29b46f
commit 26464da5d3
5 changed files with 7 additions and 73 deletions

View File

@@ -314,16 +314,9 @@ bool cmAddCustomCommandCommand(std::vector<std::string> const& args,
// Check for an append request.
if (append) {
if (mf.AppendCustomCommandToOutput(output[0], depends, implicit_depends,
commandLines)) {
return true;
}
// No command for this output exists.
status.SetError(
cmStrCat("given APPEND option with output\n ", output[0],
"\nwhich is not already a custom command output."));
return false;
mf.AppendCustomCommandToOutput(output[0], depends, implicit_depends,
commandLines);
return true;
}
if (uses_terminal && !job_pool.empty()) {