Debian Codegraph @

cmake/tribits/core/utils/GlobalSet.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: global_set()
12 #
13 # Set a variable as an internal global (cache) variable (removes boiler-plate
14 # code).
15 #
16 # Usage::
17 #
18 # global_set(<varName> [other args])
19 #
20 # This just calls::
21 #
22 # set(<varName> [other args] CACHE INTERNAL "")
23 #
24 # This avoid misspelling ``CACHE``.
25 #
26 macro(global_set VARNAME)
27 set(${VARNAME} ${ARGN} CACHE INTERNAL "")
28 endmacro()