From 54785fafbadae4a1bf8dcf2c43c5f471953b6afa Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Fri, 6 Feb 2004 13:47:11 -0500 Subject: ENH: Make more commands scriptable --- Source/cmEndForEachCommand.h | 5 +++++ Source/cmForEachCommand.h | 5 +++++ Source/cmStringCommand.h | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/Source/cmEndForEachCommand.h b/Source/cmEndForEachCommand.h index 27b0f4a..3a65df9 100644 --- a/Source/cmEndForEachCommand.h +++ b/Source/cmEndForEachCommand.h @@ -54,6 +54,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 "ENDFOREACH";} diff --git a/Source/cmForEachCommand.h b/Source/cmForEachCommand.h index 478caeb..bb767e9 100644 --- a/Source/cmForEachCommand.h +++ b/Source/cmForEachCommand.h @@ -70,6 +70,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 "FOREACH";} diff --git a/Source/cmStringCommand.h b/Source/cmStringCommand.h index edd4909..1fb5158 100644 --- a/Source/cmStringCommand.h +++ b/Source/cmStringCommand.h @@ -47,6 +47,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 "STRING";} -- cgit v0.12