diff options
author | Stephen Kelly <steveire@gmail.com> | 2014-12-18 20:03:38 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2014-12-18 23:06:00 (GMT) |
commit | e2a489c76aed54e96e85627a66692a11784e9824 (patch) | |
tree | 79cbeb1d914183e4a796f8da12b254016a337c23 /Source/cmMakefileTargetGenerator.cxx | |
parent | 0f99feec04193504a5a9ffc05e2132619ecf7dfe (diff) | |
download | CMake-e2a489c76aed54e96e85627a66692a11784e9824.zip CMake-e2a489c76aed54e96e85627a66692a11784e9824.tar.gz CMake-e2a489c76aed54e96e85627a66692a11784e9824.tar.bz2 |
Remove some temporary vectors for ExpandListArgument.
Expand directly into the target when possible.
Diffstat (limited to 'Source/cmMakefileTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileTargetGenerator.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx index 067714e..cbf8573 100644 --- a/Source/cmMakefileTargetGenerator.cxx +++ b/Source/cmMakefileTargetGenerator.cxx @@ -1193,13 +1193,7 @@ void cmMakefileTargetGenerator depends.push_back(source.GetFullPath()); if(const char* objectDeps = source.GetProperty("OBJECT_DEPENDS")) { - std::vector<std::string> deps; - cmSystemTools::ExpandListArgument(objectDeps, deps); - for(std::vector<std::string>::iterator i = deps.begin(); - i != deps.end(); ++i) - { - depends.push_back(*i); - } + cmSystemTools::ExpandListArgument(objectDeps, depends); } } |