diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-02-17 21:04:25 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-02-20 20:36:58 (GMT) |
commit | 4afe6c26c66556827e6089982c49b8dea3a2efcb (patch) | |
tree | d2611a502cd91cfb57be1dab63cd12d7d422ea39 /Source/cmListCommand.cxx | |
parent | a3a0a8c222b59f15502f52192bf41c4af2882392 (diff) | |
download | CMake-4afe6c26c66556827e6089982c49b8dea3a2efcb.zip CMake-4afe6c26c66556827e6089982c49b8dea3a2efcb.tar.gz CMake-4afe6c26c66556827e6089982c49b8dea3a2efcb.tar.bz2 |
cmAlgorithms: Add cmReverseRange adaptor.
Use it to implement list(REVERSE).
Diffstat (limited to 'Source/cmListCommand.cxx')
-rw-r--r-- | Source/cmListCommand.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmListCommand.cxx b/Source/cmListCommand.cxx index 0c6adfd..17617aa 100644 --- a/Source/cmListCommand.cxx +++ b/Source/cmListCommand.cxx @@ -390,8 +390,7 @@ bool cmListCommand return false; } - std::reverse(varArgsExpanded.begin(), varArgsExpanded.end()); - std::string value = cmJoin(varArgsExpanded, ";"); + std::string value = cmJoin(cmReverseRange(varArgsExpanded), ";"); this->Makefile->AddDefinition(listName, value.c_str()); return true; |