From 007d2bbc50618a118fd18a203b97e6779ca58588 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Sun, 22 Feb 2004 22:07:02 -0500 Subject: ENH: Make more commands scriptable --- Source/cmCMakeMinimumRequired.h | 5 +++++ Source/cmConfigureFileCommand.h | 5 +++++ Source/cmElseCommand.h | 5 +++++ Source/cmEndIfCommand.h | 5 +++++ Source/cmExecProgramCommand.h | 5 +++++ Source/cmFindFileCommand.h | 5 +++++ Source/cmFindLibraryCommand.h | 5 +++++ Source/cmFindPathCommand.h | 5 +++++ Source/cmFindProgramCommand.h | 5 +++++ Source/cmGetFilenameComponentCommand.h | 5 +++++ Source/cmMakeDirectoryCommand.h | 5 +++++ Source/cmRemoveCommand.h | 5 +++++ Source/cmSeparateArgumentsCommand.h | 5 +++++ Source/cmWriteFileCommand.h | 5 +++++ 14 files changed, 70 insertions(+) diff --git a/Source/cmCMakeMinimumRequired.h b/Source/cmCMakeMinimumRequired.h index d227ec6..c947644 100644 --- a/Source/cmCMakeMinimumRequired.h +++ b/Source/cmCMakeMinimumRequired.h @@ -48,6 +48,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 "CMAKE_MINIMUM_REQUIRED";} diff --git a/Source/cmConfigureFileCommand.h b/Source/cmConfigureFileCommand.h index 5eb4105..e9a01b3 100644 --- a/Source/cmConfigureFileCommand.h +++ b/Source/cmConfigureFileCommand.h @@ -39,6 +39,11 @@ public: virtual const char* GetName() { return "CONFIGURE_FILE";} /** + * This determines if the command is invoked when in script mode. + */ + virtual bool IsScriptable() { return true; } + + /** * Succinct documentation. */ virtual const char* GetTerseDocumentation() diff --git a/Source/cmElseCommand.h b/Source/cmElseCommand.h index 45d7b39..fa2b36b 100644 --- a/Source/cmElseCommand.h +++ b/Source/cmElseCommand.h @@ -48,6 +48,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 "ELSE";} diff --git a/Source/cmEndIfCommand.h b/Source/cmEndIfCommand.h index 1e47217..230637d 100644 --- a/Source/cmEndIfCommand.h +++ b/Source/cmEndIfCommand.h @@ -48,6 +48,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 "ENDIF";} diff --git a/Source/cmExecProgramCommand.h b/Source/cmExecProgramCommand.h index 274d8e1..8fc9c7d 100644 --- a/Source/cmExecProgramCommand.h +++ b/Source/cmExecProgramCommand.h @@ -50,6 +50,11 @@ public: {return "EXEC_PROGRAM";} /** + * This determines if the command is invoked when in script mode. + */ + virtual bool IsScriptable() { return true; } + + /** * Succinct documentation. */ virtual const char* GetTerseDocumentation() diff --git a/Source/cmFindFileCommand.h b/Source/cmFindFileCommand.h index 800cf0c..21c07eb 100644 --- a/Source/cmFindFileCommand.h +++ b/Source/cmFindFileCommand.h @@ -51,6 +51,11 @@ public: virtual bool IsInherited() { return false; } /** + * 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 "FIND_FILE";} diff --git a/Source/cmFindLibraryCommand.h b/Source/cmFindLibraryCommand.h index 9a39985..dc1d219 100644 --- a/Source/cmFindLibraryCommand.h +++ b/Source/cmFindLibraryCommand.h @@ -51,6 +51,11 @@ public: virtual bool IsInherited() {return false;} /** + * 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 "FIND_LIBRARY";} diff --git a/Source/cmFindPathCommand.h b/Source/cmFindPathCommand.h index 34d91a4..4fa4c75 100644 --- a/Source/cmFindPathCommand.h +++ b/Source/cmFindPathCommand.h @@ -51,6 +51,11 @@ public: virtual bool IsInherited() {return false;} /** + * 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 "FIND_PATH";} diff --git a/Source/cmFindProgramCommand.h b/Source/cmFindProgramCommand.h index 221e475..83d840b 100644 --- a/Source/cmFindProgramCommand.h +++ b/Source/cmFindProgramCommand.h @@ -51,6 +51,11 @@ public: virtual bool IsInherited() { return false; } /** + * 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 "FIND_PROGRAM";} diff --git a/Source/cmGetFilenameComponentCommand.h b/Source/cmGetFilenameComponentCommand.h index 7861606..4aee472 100644 --- a/Source/cmGetFilenameComponentCommand.h +++ b/Source/cmGetFilenameComponentCommand.h @@ -49,6 +49,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 "GET_FILENAME_COMPONENT";} diff --git a/Source/cmMakeDirectoryCommand.h b/Source/cmMakeDirectoryCommand.h index 908bb01..a25a8d4 100644 --- a/Source/cmMakeDirectoryCommand.h +++ b/Source/cmMakeDirectoryCommand.h @@ -51,6 +51,11 @@ public: virtual const char* GetName() { return "MAKE_DIRECTORY";} /** + * This determines if the command is invoked when in script mode. + */ + virtual bool IsScriptable() { return true; } + + /** * Succinct documentation. */ virtual const char* GetTerseDocumentation() diff --git a/Source/cmRemoveCommand.h b/Source/cmRemoveCommand.h index 4e926b2..82d1592 100644 --- a/Source/cmRemoveCommand.h +++ b/Source/cmRemoveCommand.h @@ -48,6 +48,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 "REMOVE";} diff --git a/Source/cmSeparateArgumentsCommand.h b/Source/cmSeparateArgumentsCommand.h index 8974e89..64d669f 100644 --- a/Source/cmSeparateArgumentsCommand.h +++ b/Source/cmSeparateArgumentsCommand.h @@ -48,6 +48,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 "SEPARATE_ARGUMENTS";} diff --git a/Source/cmWriteFileCommand.h b/Source/cmWriteFileCommand.h index 0c52aed..ef2561d 100644 --- a/Source/cmWriteFileCommand.h +++ b/Source/cmWriteFileCommand.h @@ -41,6 +41,11 @@ public: virtual bool InitialPass(std::vector const& args); /** + * 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 "WRITE_FILE";} -- cgit v0.12