1 /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2 file Copyright.txt or https://cmake.org/licensing for details. */
3 #include "cmCustomCommandLines.h"
5 cmCustomCommandLine cmMakeCommandLine(
6 std::initializer_list<cm::string_view> ilist)
8 cmCustomCommandLine commandLine;
9 commandLine.reserve(ilist.size());
10 for (cm::string_view cmd : ilist) {
11 commandLine.emplace_back(cmd);
16 cmCustomCommandLines cmMakeSingleCommandLine(
17 std::initializer_list<cm::string_view> ilist)
19 cmCustomCommandLines commandLines;
20 commandLines.push_back(cmMakeCommandLine(ilist));