diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-10-29 13:58:54 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-10-29 13:58:54 (GMT) |
commit | 69dd3218ba0bcdbcf3869f229199df8cd545612f (patch) | |
tree | 17711cdc8c7fcad61896efbaf4c2b3ba8c0cf2db | |
parent | b79c2f5a4c0e1a36ccffa751046b3e0a16c892d1 (diff) | |
download | CMake-69dd3218ba0bcdbcf3869f229199df8cd545612f.zip CMake-69dd3218ba0bcdbcf3869f229199df8cd545612f.tar.gz CMake-69dd3218ba0bcdbcf3869f229199df8cd545612f.tar.bz2 |
ENH: Start includding the scripting support
-rw-r--r-- | Source/cmCommand.h | 8 | ||||
-rw-r--r-- | Source/cmIncludeCommand.h | 5 | ||||
-rw-r--r-- | Source/cmMessageCommand.h | 5 |
3 files changed, 18 insertions, 0 deletions
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() |