summaryrefslogtreecommitdiffstats
path: root/Source/cmCustomCommand.cxx
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.cxx
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.cxx')
-rw-r--r--Source/cmCustomCommand.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmCustomCommand.cxx b/Source/cmCustomCommand.cxx
index f2d19d4..508e069 100644
--- a/Source/cmCustomCommand.cxx
+++ b/Source/cmCustomCommand.cxx
@@ -45,10 +45,12 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* The constructor
*/
cmCustomCommand::cmCustomCommand(const char *src, const char *command,
+ const char* arguments,
std::vector<std::string> dep,
std::vector<std::string> out):
m_Source(src),
m_Command(command),
+ m_Arguments(arguments),
m_Depends(dep),
m_Outputs(out)
{
@@ -61,6 +63,7 @@ cmCustomCommand::cmCustomCommand(const char *src, const char *command,
cmCustomCommand::cmCustomCommand(const cmCustomCommand& r):
m_Source(r.m_Source),
m_Command(r.m_Command),
+ m_Arguments(r.m_Arguments),
m_Depends(r.m_Depends),
m_Outputs(r.m_Outputs)
{
@@ -70,6 +73,7 @@ void cmCustomCommand::ExpandVariables(const cmMakefile &mf)
{
mf.ExpandVariablesInString(m_Source);
mf.ExpandVariablesInString(m_Command);
+ mf.ExpandVariablesInString(m_Arguments);
for (std::vector<std::string>::iterator i = m_Depends.begin();
i != m_Depends.end(); ++i)