ENH: separate command from its arguments in the custom command. This allows the generator on windows to change the slashes for just the command

This commit is contained in:
Bill Hoffman
2001-09-04 16:07:54 -04:00
parent ecff0d36ac
commit cc5c1fa6f7
10 changed files with 75 additions and 37 deletions
+11 -3
View File
@@ -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;
};