mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 14:19:59 -05:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user