Debian Codegraph @

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