summaryrefslogtreecommitdiffstats
path: root/Source/cmOptionCommand.h
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-12-19 21:53:58 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-12-19 21:53:58 (GMT)
commitf0824c7a19b34a387ba159b0c80c2688ff6dae20 (patch)
tree0d71767221628f2da93a6392a7f866695c8217b7 /Source/cmOptionCommand.h
parentfffb0bd9088cb3ae3ab152562c376e2ef1461d43 (diff)
downloadCMake-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.h7
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);
};