From 69dd3218ba0bcdbcf3869f229199df8cd545612f Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Wed, 29 Oct 2003 08:58:54 -0500 Subject: [PATCH] ENH: Start includding the scripting support --- Source/cmCommand.h | 8 ++++++++ Source/cmIncludeCommand.h | 5 +++++ Source/cmMessageCommand.h | 5 +++++ 3 files changed, 18 insertions(+) diff --git a/Source/cmCommand.h b/Source/cmCommand.h index c11b71b24..5380b5a00 100644 --- a/Source/cmCommand.h +++ b/Source/cmCommand.h @@ -90,6 +90,14 @@ public: return false; } + /** + * This determines if the command is invoked when in script mode. + */ + virtual bool IsScriptable() + { + return false; + } + /** * This determines if the method is deprecated or not. */ diff --git a/Source/cmIncludeCommand.h b/Source/cmIncludeCommand.h index 945f7eb00..4f95f9c99 100644 --- a/Source/cmIncludeCommand.h +++ b/Source/cmIncludeCommand.h @@ -50,6 +50,11 @@ public: */ virtual bool IsInherited() {return true;} + /** + * This determines if the command is invoked when in script mode. + */ + virtual bool IsScriptable() { return true; } + /** * The name of the command as specified in CMakeList.txt. */ diff --git a/Source/cmMessageCommand.h b/Source/cmMessageCommand.h index 8e9aa75c2..22881059d 100644 --- a/Source/cmMessageCommand.h +++ b/Source/cmMessageCommand.h @@ -45,6 +45,11 @@ public: */ virtual const char* GetName() { return "MESSAGE";} + /** + * This determines if the command is invoked when in script mode. + */ + virtual bool IsScriptable() { return true; } + /** * Succinct documentation. */