diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-12-19 21:53:58 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-12-19 21:53:58 (GMT) |
commit | f0824c7a19b34a387ba159b0c80c2688ff6dae20 (patch) | |
tree | 0d71767221628f2da93a6392a7f866695c8217b7 /Source/cmOptionCommand.h | |
parent | fffb0bd9088cb3ae3ab152562c376e2ef1461d43 (diff) | |
download | CMake-f0824c7a19b34a387ba159b0c80c2688ff6dae20.zip CMake-f0824c7a19b34a387ba159b0c80c2688ff6dae20.tar.gz CMake-f0824c7a19b34a387ba159b0c80c2688ff6dae20.tar.bz2 |
ENH: options() is now scriptable, set() is scriptable too, I don't see a big
difference
Alex
Diffstat (limited to 'Source/cmOptionCommand.h')
-rw-r--r-- | Source/cmOptionCommand.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmOptionCommand.h b/Source/cmOptionCommand.h index f1d01b6..add4156 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); }; |