summaryrefslogtreecommitdiffstats
path: root/Source/cmcldeps.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2016-10-13 16:48:24 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2016-10-14 13:27:43 (GMT)
commit47092d3e809be971264a8d5416ff3cb9255f6565 (patch)
treeab929e954450f42b9b7cfcf437a006496dbd300b /Source/cmcldeps.cxx
parent7db671a14374fdbfb8ae87ab9618bca111f4e8a5 (diff)
downloadCMake-47092d3e809be971264a8d5416ff3cb9255f6565.zip
CMake-47092d3e809be971264a8d5416ff3cb9255f6565.tar.gz
CMake-47092d3e809be971264a8d5416ff3cb9255f6565.tar.bz2
cmcldeps: append strings as strings
Diffstat (limited to 'Source/cmcldeps.cxx')
-rw-r--r--Source/cmcldeps.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmcldeps.cxx b/Source/cmcldeps.cxx
index aed67b9..bfbb5fd 100644
--- a/Source/cmcldeps.cxx
+++ b/Source/cmcldeps.cxx
@@ -205,7 +205,7 @@ static int process(const std::string& srcfilename, const std::string& dfile,
std::vector<std::string> command;
for (std::vector<std::string>::iterator i = args.begin(); i != args.end();
++i) {
- command.push_back(i->c_str());
+ command.push_back(*i);
}
// run the command
int exit_code = 0;