mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
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:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user