diff options
author | Ken Martin <ken.martin@kitware.com> | 2001-09-10 15:11:15 -0400 |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2001-09-10 15:11:15 -0400 |
commit | 0fe42a98572f2339ee763a475ecdd003c8a80ac8 (patch) | |
tree | 26a6c316b460bbb65de5a7d4a826d38ae9086696 /Source/cmCableWrapTclCommand.cxx | |
parent | 5acb894e585f6f65741c102e74fd826b2250eb11 (diff) | |
download | cmake-0fe42a98572f2339ee763a475ecdd003c8a80ac8.tar.gz |
various windows fixes
Diffstat (limited to 'Source/cmCableWrapTclCommand.cxx')
-rw-r--r-- | Source/cmCableWrapTclCommand.cxx | 41 |
1 files changed, 24 insertions, 17 deletions
diff --git a/Source/cmCableWrapTclCommand.cxx b/Source/cmCableWrapTclCommand.cxx index 510d7810b5..74253bb051 100644 --- a/Source/cmCableWrapTclCommand.cxx +++ b/Source/cmCableWrapTclCommand.cxx @@ -213,8 +213,11 @@ void cmCableWrapTclCommand::GenerateCableFiles() const m_Makefile->ExpandVariablesInString(command); std::vector<std::string> depends; depends.push_back(command); - std::string commandArgs = " "+packageConfigName+ - " -tcl "+packageTclFullName+".cxx"; + std::vector<std::string> commandArgs; + commandArgs.push_back(packageConfigName); + commandArgs.push_back("-tcl"); + std::string tmp = packageTclFullName+".cxx"; + commandArgs.push_back(tmp); depends.push_back(packageConfigName); @@ -223,7 +226,7 @@ void cmCableWrapTclCommand::GenerateCableFiles() const m_Makefile->AddCustomCommand(packageConfigName.c_str(), command.c_str(), - commandArgs.c_str(), + commandArgs, depends, outputs, m_TargetName.c_str()); @@ -341,30 +344,31 @@ void cmCableWrapTclCommand::GenerateCableClassFiles(const char* name, } } - std::string commandArgs = this->GetGccXmlFlagsFromCache(); - commandArgs += " "; - commandArgs += m_Makefile->GetDefineFlags(); - commandArgs += " -I\""; - commandArgs += m_Makefile->GetStartDirectory(); - commandArgs += "\""; + std::vector<std::string> commandArgs; + commandArgs.push_back(this->GetGccXmlFlagsFromCache()); + commandArgs.push_back(m_Makefile->GetDefineFlags()); + commandArgs.push_back("-I"); + commandArgs.push_back(m_Makefile->GetStartDirectory()); const std::vector<std::string>& includes = m_Makefile->GetIncludeDirectories(); for(std::vector<std::string>::const_iterator i = includes.begin(); i != includes.end(); ++i) { - commandArgs += " -I"; - commandArgs += cmSystemTools::EscapeSpaces(i->c_str()); + commandArgs.push_back("-I"); + commandArgs.push_back(cmSystemTools::EscapeSpaces(i->c_str())); } - - commandArgs += " -fxml="+classXmlName+" "+classCxxName; + std::string tmp = "-fxml="; + tmp += classXmlName; + commandArgs.push_back(tmp); + commandArgs.push_back(classCxxName); std::vector<std::string> outputs; outputs.push_back(classXmlName); m_Makefile->AddCustomCommand(classCxxName.c_str(), command.c_str(), - commandArgs.c_str(), + commandArgs, depends, outputs, m_TargetName.c_str()); } @@ -374,7 +378,11 @@ void cmCableWrapTclCommand::GenerateCableClassFiles(const char* name, std::string command = this->GetCableFromCache(); std::vector<std::string> depends; depends.push_back(command); - std::string commandArgs = " "+classConfigName+" -tcl "+classTclFullName+".cxx"; + std::vector<std::string > commandArgs; + commandArgs.push_back(classConfigName); + commandArgs.push_back("-tcl"); + std::string tmp = classTclFullName+".cxx"; + commandArgs.push_back(tmp); depends.push_back(classConfigName); depends.push_back(classXmlName); @@ -384,8 +392,7 @@ void cmCableWrapTclCommand::GenerateCableClassFiles(const char* name, m_Makefile->AddCustomCommand(classConfigName.c_str(), command.c_str(), - commandArgs.c_str(), - depends, + commandArgs, depends, outputs, m_TargetName.c_str()); } |