Debian Codegraph @

cmake/tribits/core/utils/AssertAndTouchDefined.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 function(assert_and_touch_defined VARS)
11 foreach(VAR ${VARS})
12 if(NOT DEFINED ${VAR})
13 message(SEND_ERROR "Error, the variable ${VAR} is not defined!")
14 else()
15 # Read the variable so that it will register as being read!
16 set(DUMMY_VAR ${${VAR}})
17 endif()
18 endforeach()
19 endfunction()