## ------------------------------------------------------------------------ ## ## SPDX-License-Identifier: LGPL-2.1-or-later ## Copyright (C) 2012 - 2022 by the deal.II authors ## ## This file is part of the deal.II library. ## ## Part of the source code is dual licensed under Apache-2.0 WITH ## LLVM-exception OR LGPL-2.1-or-later. Detailed license information ## governing the source code and code contributions can be found in ## LICENSE.md and CONTRIBUTING.md at the top level directory of deal.II. ## ## ------------------------------------------------------------------------ # # A small macro used for converting a cmake list into a space # separated string. This macro adds the string "prefix" in front of each # element of the list. # # Usage: # to_string_and_add_prefix(string "prefix" ${list1} ${list2} ...) # macro(to_string_and_add_prefix _variable _prefix) set(${_variable} "") foreach(_var ${ARGN}) set(${_variable} "${${_variable}} ${_prefix}${_var}") endforeach() string(STRIP "${${_variable}}" ${_variable}) endmacro()