cmConsoleBuf.cxx 571 B

1234567891011121314151617181920212223
  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. #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. cmConsoleBuf::~cmConsoleBuf() = default;
  14. void cmConsoleBuf::SetUTF8Pipes()
  15. {
  16. #if defined(_WIN32) && !defined(CMAKE_BOOTSTRAP)
  17. m_ConsoleOut.SetUTF8Pipes();
  18. m_ConsoleErr.SetUTF8Pipes();
  19. #endif
  20. }