Ninja Multi-Config: Add support for DEPFILE option in add_custom_command()

And give other generators a path forward to add support in the future.
This commit is contained in:
Kyle Edwards
2020-02-07 14:18:54 -05:00
parent ad17c37d34
commit 67102d3252
6 changed files with 23 additions and 1 deletions
+1 -1
View File
@@ -174,7 +174,7 @@ bool cmAddCustomCommandCommand(std::vector<std::string> const& args,
doing = doing_comment;
} else if (copy == keyDEPFILE) {
doing = doing_depfile;
if (mf.GetGlobalGenerator()->GetName() != "Ninja") {
if (!mf.GetGlobalGenerator()->SupportsCustomCommandDepfile()) {
status.SetError("Option DEPFILE not supported by " +
mf.GetGlobalGenerator()->GetName());
return false;