diff options
author | Sebastien Barre <sebastien.barre@kitware.com> | 2008-03-12 21:02:10 (GMT) |
---|---|---|
committer | Sebastien Barre <sebastien.barre@kitware.com> | 2008-03-12 21:02:10 (GMT) |
commit | f64d3d0b77bfa41d64cf86e1b60e499eba7a813c (patch) | |
tree | 72a30a61f9b6d9325164272a170a6664e52ef420 /Tests/CMakeTests/ListTest.cmake.in | |
parent | 2ad4f4bb9de4bb5ec85099ec993795d221f8b974 (diff) | |
download | CMake-f64d3d0b77bfa41d64cf86e1b60e499eba7a813c.zip CMake-f64d3d0b77bfa41d64cf86e1b60e499eba7a813c.tar.gz CMake-f64d3d0b77bfa41d64cf86e1b60e499eba7a813c.tar.bz2 |
ENH: add REMOVE_DUPLICATES subcommand to LIST command (and test). Remove duplicates from a list (keep the ordering)
Diffstat (limited to 'Tests/CMakeTests/ListTest.cmake.in')
-rw-r--r-- | Tests/CMakeTests/ListTest.cmake.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/CMakeTests/ListTest.cmake.in b/Tests/CMakeTests/ListTest.cmake.in index eea0da0..cf6f91a 100644 --- a/Tests/CMakeTests/ListTest.cmake.in +++ b/Tests/CMakeTests/ListTest.cmake.in @@ -82,3 +82,7 @@ TEST("SORT result" "andy;bill;brad;ken") SET(result andy bill brad ken) LIST(REVERSE result) TEST("REVERSE result" "ken;brad;bill;andy") + +SET(result bill andy bill brad ken ken ken) +LIST(REMOVE_DUPLICATES result) +TEST("REMOVE_DUPLICATES result" "bill;andy;brad;ken") |