summaryrefslogtreecommitdiffstats
path: root/Source/cmListCommand.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-02-17 21:04:25 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-02-20 20:36:58 (GMT)
commit4afe6c26c66556827e6089982c49b8dea3a2efcb (patch)
treed2611a502cd91cfb57be1dab63cd12d7d422ea39 /Source/cmListCommand.cxx
parenta3a0a8c222b59f15502f52192bf41c4af2882392 (diff)
downloadCMake-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.cxx3
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;