cmDisallowedCommand: Forward final pass too

Refactoring in commit 7fb14775 (cmDisallowedCommand: extract policy
checking from cmCommand, 2016-12-26) introduced a wrapper for
disallowed commands that forwards to their original commands.
This broke the `export_library_dependencies` command that uses
a final pass.  Forward the final pass too to fix it.
This commit is contained in:
Brad King
2017-02-15 09:18:26 -05:00
parent e0f3931226
commit 20ae76b1da

View File

@@ -34,6 +34,13 @@ public:
bool InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& status) CM_OVERRIDE;
void FinalPass() CM_OVERRIDE { this->Command->FinalPass(); }
bool HasFinalPass() const CM_OVERRIDE
{
return this->Command->HasFinalPass();
}
bool IsScriptable() const CM_OVERRIDE
{
return this->Command->IsScriptable();