summaryrefslogtreecommitdiffstats
path: root/Source/cmOptionCommand.h
diff options
context:
space:
mode:
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);
};