summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-02-15 14:18:26 (GMT)
committerBrad King <brad.king@kitware.com>2017-02-15 14:22:22 (GMT)
commit20ae76b1da82d87792fb54335dbf95e871261f52 (patch)
treef87dcebcccea63ce31cdea53438bfd01b4a99a5e
parente0f3931226d6f947572bce7a4b98c55812bba105 (diff)
downloadCMake-20ae76b1da82d87792fb54335dbf95e871261f52.zip
CMake-20ae76b1da82d87792fb54335dbf95e871261f52.tar.gz
CMake-20ae76b1da82d87792fb54335dbf95e871261f52.tar.bz2
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.
-rw-r--r--Source/cmDisallowedCommand.h7
1 files changed, 7 insertions, 0 deletions
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<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();