| 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_null_set() |
| 12 |
# |
| 13 |
# Set a variable as a null internal global (cache) variable (removes |
| 14 |
# boiler-plate code). |
| 15 |
# |
| 16 |
# Usage:: |
| 17 |
# |
| 18 |
# global_null_set(<varName>) |
| 19 |
# |
| 20 |
# This just calls:: |
| 21 |
# |
| 22 |
# set(<varName> "" CACHE INTERNAL "") |
| 23 |
# |
| 24 |
# This avoid problems with misspelling ``CACHE``. |
| 25 |
# |
| 26 |
macro(global_null_set VARNAME) |
| 27 |
set(${VARNAME} "" CACHE INTERNAL "") |
| 28 |
endmacro() |