summaryrefslogtreecommitdiffstats
path: root/Source/cmConsoleBuf.cxx
blob: 8ce9ebc6c79b352685deab0f04bdb17e9c13f0ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
   file Copyright.txt or https://cmake.org/licensing for details.  */
#include "cmConsoleBuf.h"

#if defined(_WIN32) && !defined(CMAKE_BOOTSTRAP)
cmConsoleBuf::cmConsoleBuf()
  : m_ConsoleOut(std::cout)
  , m_ConsoleErr(std::cerr, true)
{
}
#else
cmConsoleBuf::cmConsoleBuf() = default;
#endif

void cmConsoleBuf::SetUTF8Pipes()
{
#if defined(_WIN32) && !defined(CMAKE_BOOTSTRAP)
  m_ConsoleOut.SetUTF8Pipes();
  m_ConsoleErr.SetUTF8Pipes();
#endif
}