Browse Source

ENH: options() is now scriptable, set() is scriptable too, I don't see a big
difference

Alex

Alexander Neundorf 18 years ago
parent
commit
f0824c7a19
1 changed files with 6 additions and 1 deletions
  1. 6 1
      Source/cmOptionCommand.h

+ 6 - 1
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);
 };