resolve cyclic dependency with zstd
[platform/upstream/cmake.git] / Source / cmConsoleBuf.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 "cmConsoleBuf.h"
4
5 #if defined(_WIN32) && !defined(CMAKE_BOOTSTRAP)
6 cmConsoleBuf::cmConsoleBuf()
7   : m_ConsoleOut(std::cout)
8   , m_ConsoleErr(std::cerr, true)
9 {
10 }
11 #else
12 cmConsoleBuf::cmConsoleBuf() = default;
13 #endif
14
15 void cmConsoleBuf::SetUTF8Pipes()
16 {
17 #if defined(_WIN32) && !defined(CMAKE_BOOTSTRAP)
18   m_ConsoleOut.SetUTF8Pipes();
19   m_ConsoleErr.SetUTF8Pipes();
20 #endif
21 }