From f0824c7a19b34a387ba159b0c80c2688ff6dae20 Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Wed, 19 Dec 2007 16:53:58 -0500 Subject: [PATCH] ENH: options() is now scriptable, set() is scriptable too, I don't see a big difference Alex --- Source/cmOptionCommand.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/cmOptionCommand.h b/Source/cmOptionCommand.h index f1d01b6e6..add4156f3 100644 --- a/Source/cmOptionCommand.h +++ b/Source/cmOptionCommand.h @@ -65,7 +65,12 @@ public: "Provide an option for the user to select as ON or OFF. If no " "initial value is provided, OFF is used."; } - + + /** + * This determines if the command is invoked when in script mode. + */ + virtual bool IsScriptable() { return true; } + cmTypeMacro(cmOptionCommand, cmCommand); };