diff options
author | Brad King <brad.king@kitware.com> | 2009-07-24 20:53:07 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-07-24 20:53:07 (GMT) |
commit | 3e5543c8bcfd6f67b9fe6759c6a32da23a629b85 (patch) | |
tree | d5ab84ab398b3c5c72a9311ff8c360e8e5e0066e /Source | |
parent | e0461bbcbcae66769766ede75de735de76455e48 (diff) | |
download | CMake-3e5543c8bcfd6f67b9fe6759c6a32da23a629b85.zip CMake-3e5543c8bcfd6f67b9fe6759c6a32da23a629b85.tar.gz CMake-3e5543c8bcfd6f67b9fe6759c6a32da23a629b85.tar.bz2 |
BUG: Keep variable_watch() commands in memory
The "Keep only FinalPass commands in memory" commit caused instances of
this command to be deleted after the InitialPass. Even though the
variable_watch command does not have a final pass, it does need to stay
alive because it owns the callback information.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmVariableWatchCommand.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmVariableWatchCommand.h b/Source/cmVariableWatchCommand.h index 61d6226..cca13e2 100644 --- a/Source/cmVariableWatchCommand.h +++ b/Source/cmVariableWatchCommand.h @@ -56,6 +56,10 @@ public: */ virtual bool IsScriptable() { return true; } + /** This command does not really have a final pass but it needs to + stay alive since it owns variable watch callback information. */ + virtual bool HasFinalPass() const { return true; } + /** * The name of the command as specified in CMakeList.txt. */ |