diff options
author | Brad King <brad.king@kitware.com> | 2008-06-02 20:45:07 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-06-02 20:45:07 (GMT) |
commit | bed3ac8741405132096430c9f61578df9f8cfbf9 (patch) | |
tree | b140448aa518e2d4e20349cf5c72ce8e412a6977 /Source/cmAddCustomCommandCommand.cxx | |
parent | 6be09c366774ed6d723a06f5f07ba5c09d8e4579 (diff) | |
download | CMake-bed3ac8741405132096430c9f61578df9f8cfbf9.zip CMake-bed3ac8741405132096430c9f61578df9f8cfbf9.tar.gz CMake-bed3ac8741405132096430c9f61578df9f8cfbf9.tar.bz2 |
ENH: Remove SKIP_RULE_DEPENDS option from add_custom_command()
- Option was recently added but never released.
- Custom commands no longer depend on build.make so we do
not need the option.
- Rule hashes now take care of rebuilding when rules change
so the dependency is not needed.
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 afbdc70..5912a79 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) |