resolve cyclic dependency with zstd
[platform/upstream/cmake.git] / Source / cmCustomCommandLines.cxx
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"
4
5 cmCustomCommandLine cmMakeCommandLine(
6   std::initializer_list<cm::string_view> ilist)
7 {
8   cmCustomCommandLine commandLine;
9   commandLine.reserve(ilist.size());
10   for (cm::string_view cmd : ilist) {
11     commandLine.emplace_back(cmd);
12   }
13   return commandLine;
14 }
15
16 cmCustomCommandLines cmMakeSingleCommandLine(
17   std::initializer_list<cm::string_view> ilist)
18 {
19   cmCustomCommandLines commandLines;
20   commandLines.push_back(cmMakeCommandLine(ilist));
21   return commandLines;
22 }