diff options
Diffstat (limited to 'Source/cmAddCustomCommandCommand.cxx')
-rw-r--r-- | Source/cmAddCustomCommandCommand.cxx | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/Source/cmAddCustomCommandCommand.cxx b/Source/cmAddCustomCommandCommand.cxx index afbdc70c4f..5912a79f0e 100644 --- a/Source/cmAddCustomCommandCommand.cxx +++ b/Source/cmAddCustomCommandCommand.cxx @@ -40,7 +40,6 @@ bool cmAddCustomCommandCommand std::vector<std::string> depends, outputs, output; bool verbatim = false; bool append = false; - bool skip_rule_depends = false; std::string implicit_depends_lang; cmCustomCommand::ImplicitDependsList implicit_depends; @@ -104,11 +103,6 @@ bool cmAddCustomCommandCommand { verbatim = true; } - else if(copy == "SKIP_RULE_DEPENDS") - { - doing = doing_nothing; - skip_rule_depends = true; - } else if(copy == "APPEND") { append = true; @@ -316,8 +310,8 @@ bool cmAddCustomCommandCommand working.c_str(), false, escapeOldStyle); - // Get the rule object to add some extra information. - if(!implicit_depends.empty() || skip_rule_depends) + // Add implicit dependency scanning requests if any were given. + if(!implicit_depends.empty()) { bool okay = false; if(cmSourceFile* sf = @@ -326,16 +320,7 @@ bool cmAddCustomCommandCommand if(cmCustomCommand* cc = sf->GetCustomCommand()) { okay = true; - - // Add implicit dependency scanning requests if any were - // given. - if(!implicit_depends.empty()) - { - cc->SetImplicitDepends(implicit_depends); - } - - // Set the rule dependency state. - cc->SetSkipRuleDepends(skip_rule_depends); + cc->SetImplicitDepends(implicit_depends); } } if(!okay) |