From 02b961f29cc4dd5b53bcbde69e11ac4b012c1010 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Wed, 7 Dec 2005 11:39:08 -0500 Subject: [PATCH] ENH: Make commands scriptable --- Source/cmBuildNameCommand.h | 5 +++++ Source/cmFindPackageCommand.h | 5 +++++ Source/cmGetCMakePropertyCommand.h | 5 +++++ Source/cmGetDirectoryPropertyCommand.h | 5 +++++ Source/cmSetDirectoryPropertiesCommand.h | 5 +++++ Source/cmSiteNameCommand.h | 5 +++++ 6 files changed, 30 insertions(+) diff --git a/Source/cmBuildNameCommand.h b/Source/cmBuildNameCommand.h index 5a3335676..cf61be3a2 100644 --- a/Source/cmBuildNameCommand.h +++ b/Source/cmBuildNameCommand.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. */ diff --git a/Source/cmFindPackageCommand.h b/Source/cmFindPackageCommand.h index 144941d4c..9ea30d3b4 100644 --- a/Source/cmFindPackageCommand.h +++ b/Source/cmFindPackageCommand.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. */ diff --git a/Source/cmGetCMakePropertyCommand.h b/Source/cmGetCMakePropertyCommand.h index 4849107a3..e4b095f81 100644 --- a/Source/cmGetCMakePropertyCommand.h +++ b/Source/cmGetCMakePropertyCommand.h @@ -33,6 +33,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. */ diff --git a/Source/cmGetDirectoryPropertyCommand.h b/Source/cmGetDirectoryPropertyCommand.h index 88293a184..6892221de 100644 --- a/Source/cmGetDirectoryPropertyCommand.h +++ b/Source/cmGetDirectoryPropertyCommand.h @@ -33,6 +33,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. */ diff --git a/Source/cmSetDirectoryPropertiesCommand.h b/Source/cmSetDirectoryPropertiesCommand.h index 1bc231013..ea9afbfaf 100644 --- a/Source/cmSetDirectoryPropertiesCommand.h +++ b/Source/cmSetDirectoryPropertiesCommand.h @@ -33,6 +33,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. */ diff --git a/Source/cmSiteNameCommand.h b/Source/cmSiteNameCommand.h index a19103290..465aeda8f 100644 --- a/Source/cmSiteNameCommand.h +++ b/Source/cmSiteNameCommand.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. */