summaryrefslogtreecommitdiff
path: root/Source/cmAddCustomCommandCommand.cxx
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2020-02-07 14:18:54 -0500
committerKyle Edwards <kyle.edwards@kitware.com>2020-02-07 14:18:54 -0500
commit67102d3252f744987762ae19c4bfffeb11cdd46e (patch)
tree90714a5acbd052779b36cf56940ebf2032068bbf /Source/cmAddCustomCommandCommand.cxx
parentad17c37d345cd143a131e4b5f26196e0e749ec0e (diff)
downloadcmake-67102d3252f744987762ae19c4bfffeb11cdd46e.tar.gz
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.
Diffstat (limited to 'Source/cmAddCustomCommandCommand.cxx')
-rw-r--r--Source/cmAddCustomCommandCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmAddCustomCommandCommand.cxx b/Source/cmAddCustomCommandCommand.cxx
index 5deba8b5a7..231a2d6303 100644
--- a/Source/cmAddCustomCommandCommand.cxx
+++ b/Source/cmAddCustomCommandCommand.cxx
@@ -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;