# @HEADER # ***************************************************************************** # TriBITS: Tribal Build, Integrate, and Test System # # Copyright 2013-2016 NTESS and the TriBITS contributors. # SPDX-License-Identifier: BSD-3-Clause # ***************************************************************************** # @HEADER include(AppendCmndlineArgs) include(DualScopeSet) # @MACRO: dual_scope_append_cmndline_args() # # Utility function that appends command-line arguments to a variable of # command-line options and sets the result in current scope and parent scope. # # Usage:: # # dual_scope_append_cmndline_args( "") # # Just calls `append_cmndline_args()`_ and then ``set( ${} PARENT_SCOPE)``. # macro(dual_scope_append_cmndline_args CMNDLINE_VAR_NAME EXTRAARGS) append_cmndline_args(${CMNDLINE_VAR_NAME} "${EXTRAARGS}") set(${CMNDLINE_VAR_NAME} "${${CMNDLINE_VAR_NAME}}" PARENT_SCOPE) endmacro()