Debian Codegraph @

cmake/tribits/core/utils/AppendSet.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: append_set()
12 #
13 # Utility function to append elements to a variable (reduces boiler-plate
14 # code).
15 #
16 # Usage::
17 #
18 # append_set(<varName> <arg0> <arg1> ...)
19 #
20 # This just calls::
21 #
22 # list(APPEND <varName> <arg0> <arg1> ...)
23 #
24 # There is better error reporting if one misspells ``APPEND_SET`` than if one
25 # misspells ``APPEND``.
26 #
27 macro(append_set VARNAME)
28 list(APPEND ${VARNAME} ${ARGN})
29 endmacro()