From 20ae76b1da82d87792fb54335dbf95e871261f52 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 15 Feb 2017 09:18:26 -0500 Subject: 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. --- Source/cmDisallowedCommand.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/cmDisallowedCommand.h b/Source/cmDisallowedCommand.h index 9cf5e6f..00b0183 100644 --- a/Source/cmDisallowedCommand.h +++ b/Source/cmDisallowedCommand.h @@ -34,6 +34,13 @@ public: bool InitialPass(std::vector 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(); -- cgit v0.12