Debian Codegraph @

cmake/tribits/core/utils/TribitsCreateReverseList.cmake

raw
1 # @HEADER
2 # *****************************************************************************
3 # TriBITS: Tribal Build, Integrate, and Test System
4 #
5 # Copyright 2013-2016 NTESS and the TriBITS contributors.
6 # SPDX-License-Identifier: BSD-3-Clause
7 # *****************************************************************************
8 # @HEADER
9
10
11 # @MACRO: tribits_create_reverse_list()
12 #
13 # Create a reverse list var in one shot.
14 #
15 # Usage::
16 #
17 # tribits_create_reverse_list(<oldListName> <newListName>)
18 #
19 macro(tribits_create_reverse_list oldListName newListName)
20 set(${newListName} ${${oldListName}})
21 list(REVERSE ${newListName})
22 endmacro()