cmConsoleBuf.cxx 527 B

123456789101112131415161718192021
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file LICENSE.rst or https://cmake.org/licensing for details. */
  3. #include "cmConsoleBuf.h"
  4. #if defined(_WIN32) && !defined(CMAKE_BOOTSTRAP)
  5. cmConsoleBuf::cmConsoleBuf()
  6. : m_ConsoleOut(std::cout)
  7. , m_ConsoleErr(std::cerr, true)
  8. {
  9. }
  10. #else
  11. cmConsoleBuf::cmConsoleBuf() = default;
  12. #endif
  13. void cmConsoleBuf::SetUTF8Pipes()
  14. {
  15. #if defined(_WIN32) && !defined(CMAKE_BOOTSTRAP)
  16. m_ConsoleOut.SetUTF8Pipes();
  17. m_ConsoleErr.SetUTF8Pipes();
  18. #endif
  19. }