diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-09-04 20:07:54 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-09-04 20:07:54 (GMT) |
commit | cc5c1fa6f739648d2dfc61355908752c5e073621 (patch) | |
tree | 086941624518402b3e67d4d4413af64ea6c42839 /Source/cmMakefile.cxx | |
parent | ecff0d36ac396c6fd905bd639a2f2a604d1aad43 (diff) | |
download | CMake-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/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 60af93b..88aaaad 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -470,9 +470,7 @@ void cmMakefile::AddCustomCommand(const char* source, if (m_Targets.find(target) != m_Targets.end()) { std::string c = cmSystemTools::EscapeSpaces(command); - c += " "; - c += commandArgs; - cmCustomCommand cc(source,c.c_str(),depends,outputs); + cmCustomCommand cc(source,c.c_str(),commandArgs,depends,outputs); m_Targets[target].GetCustomCommands().push_back(cc); std::string cacheCommand = command; this->ExpandVariablesInString(cacheCommand); @@ -707,15 +705,17 @@ void cmMakefile::AddExecutable(const char *exeName, void cmMakefile::AddUtilityCommand(const char* utilityName, const char* command, + const char* arguments, bool all) { std::vector<std::string> empty; - this->AddUtilityCommand(utilityName,command,all, + this->AddUtilityCommand(utilityName,command,arguments,all, empty,empty); } void cmMakefile::AddUtilityCommand(const char* utilityName, const char* command, + const char* arguments, bool all, const std::vector<std::string> &dep, const std::vector<std::string> &out) @@ -723,7 +723,7 @@ void cmMakefile::AddUtilityCommand(const char* utilityName, cmTarget target; target.SetType(cmTarget::UTILITY); target.SetInAll(all); - cmCustomCommand cc(utilityName, command, dep, out); + cmCustomCommand cc(utilityName, command, arguments, dep, out); target.GetCustomCommands().push_back(cc); m_Targets.insert(cmTargets::value_type(utilityName,target)); } |