Debian Codegraph @

cmake/tribits/core/utils/AdvancedSet.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: advanced_set()
12 #
13 # Macro that sets a variable and marks it as advanced (removes boiler-plate
14 # and duplication).
15 #
16 # Usage::
17 #
18 # advanced_set(<varName> [other arguments])
19 #
20 # This just calls the built-in commands::
21 #
22 # set(<varName> [other arguments])
23 # mark_as_advanced(<varName>)
24 #
25 macro(advanced_set VARNAME)
26 set(${VARNAME} ${ARGN})
27 mark_as_advanced(${VARNAME})
28 endmacro()