diff options
author | Ken Martin <ken.martin@kitware.com> | 2001-09-10 19:11:15 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2001-09-10 19:11:15 (GMT) |
commit | 0fe42a98572f2339ee763a475ecdd003c8a80ac8 (patch) | |
tree | 26a6c316b460bbb65de5a7d4a826d38ae9086696 /Source/cmMakefile.cxx | |
parent | 5acb894e585f6f65741c102e74fd826b2250eb11 (diff) | |
download | CMake-0fe42a98572f2339ee763a475ecdd003c8a80ac8.zip CMake-0fe42a98572f2339ee763a475ecdd003c8a80ac8.tar.gz CMake-0fe42a98572f2339ee763a475ecdd003c8a80ac8.tar.bz2 |
various windows fixes
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 88aaaad..64d3e69 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -461,7 +461,7 @@ void cmMakefile::RemoveSource(cmSourceFile& cmfile,const char *srclist) void cmMakefile::AddCustomCommand(const char* source, const char* command, - const char* commandArgs, + const std::vector<std::string>& commandArgs, const std::vector<std::string>& depends, const std::vector<std::string>& outputs, const char *target) @@ -470,7 +470,17 @@ void cmMakefile::AddCustomCommand(const char* source, if (m_Targets.find(target) != m_Targets.end()) { std::string c = cmSystemTools::EscapeSpaces(command); - cmCustomCommand cc(source,c.c_str(),commandArgs,depends,outputs); + + std::string combinedArgs; + int i; + + for (i = 0; i < commandArgs.size(); ++i) + { + combinedArgs += cmSystemTools::EscapeSpaces(commandArgs[i].c_str()); + combinedArgs += " "; + } + + cmCustomCommand cc(source,c.c_str(),combinedArgs.c_str(),depends,outputs); m_Targets[target].GetCustomCommands().push_back(cc); std::string cacheCommand = command; this->ExpandVariablesInString(cacheCommand); @@ -484,7 +494,7 @@ void cmMakefile::AddCustomCommand(const char* source, void cmMakefile::AddCustomCommand(const char* source, const char* command, - const char* commandArgs, + const std::vector<std::string>& commandArgs, const std::vector<std::string>& depends, const char* output, const char *target) |