summaryrefslogtreecommitdiffstats
path: root/Source/cmCustomCommand.h
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-09-04 20:07:54 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-09-04 20:07:54 (GMT)
commitcc5c1fa6f739648d2dfc61355908752c5e073621 (patch)
tree086941624518402b3e67d4d4413af64ea6c42839 /Source/cmCustomCommand.h
parentecff0d36ac396c6fd905bd639a2f2a604d1aad43 (diff)
downloadCMake-cc5c1fa6f739648d2dfc61355908752c5e073621.zip
CMake-cc5c1fa6f739648d2dfc61355908752c5e073621.tar.gz
CMake-cc5c1fa6f739648d2dfc61355908752c5e073621.tar.bz2
ENH: separate command from its arguments in the custom command. This allows the generator on windows to change the slashes for just the command
Diffstat (limited to 'Source/cmCustomCommand.h')
-rw-r--r--Source/cmCustomCommand.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/Source/cmCustomCommand.h b/Source/cmCustomCommand.h
index 69e3183..0c9c38d 100644
--- a/Source/cmCustomCommand.h
+++ b/Source/cmCustomCommand.h
@@ -53,6 +53,7 @@ class cmCustomCommand
{
public:
cmCustomCommand(const char *src, const char *command,
+ const char* arguments,
std::vector<std::string> dep,
std::vector<std::string> out);
cmCustomCommand(const cmCustomCommand& r);
@@ -69,11 +70,17 @@ public:
std::string GetSourceName() const {return m_Source;}
void SetSourceName(const char *name) {m_Source = name;}
- /**
- * Return the command to execute
- */
+ ///! Return the command to execute with arguments
+ std::string GetCommandAndArguments() const
+ {return m_Command + " " + m_Arguments;}
+
+ ///! Return the command to execute
std::string GetCommand() const {return m_Command;}
void SetCommand(const char *cmd) {m_Command = cmd;}
+
+ ///! Return the commands arguments
+ std::string GetArguments() const {return m_Arguments;}
+ void SetArguments(const char *arg) {m_Arguments = arg;}
/**
* Return the vector that holds the list of dependencies
@@ -90,6 +97,7 @@ public:
private:
std::string m_Source;
std::string m_Command;
+ std::string m_Arguments;
std::vector<std::string> m_Depends;
std::vector<std::string> m_Outputs;
};