summaryrefslogtreecommitdiffstats
path: root/Source/cmAddCustomCommandCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-10-07 18:49:30 (GMT)
committerBrad King <brad.king@kitware.com>2020-10-08 16:20:33 (GMT)
commit26464da5d3919cf0c5a6fc3e34cf143bd65d9938 (patch)
tree7cef3720acb41c2791462803f234fcf3c01e86fd /Source/cmAddCustomCommandCommand.cxx
parent142a29b46f6e34b45354425c0da9c49aff9c362c (diff)
downloadCMake-26464da5d3919cf0c5a6fc3e34cf143bd65d9938.zip
CMake-26464da5d3919cf0c5a6fc3e34cf143bd65d9938.tar.gz
CMake-26464da5d3919cf0c5a6fc3e34cf143bd65d9938.tar.bz2
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.
Diffstat (limited to 'Source/cmAddCustomCommandCommand.cxx')
-rw-r--r--Source/cmAddCustomCommandCommand.cxx13
1 files changed, 3 insertions, 10 deletions
diff --git a/Source/cmAddCustomCommandCommand.cxx b/Source/cmAddCustomCommandCommand.cxx
index 231a2d6..bea89c0 100644
--- a/Source/cmAddCustomCommandCommand.cxx
+++ b/Source/cmAddCustomCommandCommand.cxx
@@ -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()) {