From 69dd3218ba0bcdbcf3869f229199df8cd545612f Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Wed, 29 Oct 2003 08:58:54 -0500 Subject: 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 c11b71b..5380b5a 100644 --- a/Source/cmCommand.h +++ b/Source/cmCommand.h @@ -91,6 +91,14 @@ public: } /** + * 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. */ virtual bool IsDeprecated(int /*major*/, int /*minor*/) diff --git a/Source/cmIncludeCommand.h b/Source/cmIncludeCommand.h index 945f7eb..4f95f9c 100644 --- a/Source/cmIncludeCommand.h +++ b/Source/cmIncludeCommand.h @@ -51,6 +51,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. */ virtual const char* GetName() {return "INCLUDE";} diff --git a/Source/cmMessageCommand.h b/Source/cmMessageCommand.h index 8e9aa75..2288105 100644 --- a/Source/cmMessageCommand.h +++ b/Source/cmMessageCommand.h @@ -46,6 +46,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. */ virtual const char* GetTerseDocumentation() -- cgit v0.12