diff options
-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() |