mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-14 02:08:27 +08:00
cmConsoleBuf: Remove unused infrastructure
It has been replaced by `cm::StdIo::Console`.
This commit is contained in:
@@ -148,8 +148,6 @@ add_library(
|
||||
cmComputeTargetDepends.cxx
|
||||
cmConfigureLog.h
|
||||
cmConfigureLog.cxx
|
||||
cmConsoleBuf.h
|
||||
cmConsoleBuf.cxx
|
||||
cmConstStack.h
|
||||
cmConstStack.tcc
|
||||
cmCPackPropertiesGenerator.h
|
||||
|
@@ -21,7 +21,6 @@ set(KWSYS_USE_Base64 1)
|
||||
set(KWSYS_USE_MD5 1)
|
||||
set(KWSYS_USE_Process 1)
|
||||
set(KWSYS_USE_CommandLineArguments 1)
|
||||
set(KWSYS_USE_ConsoleBuf 1)
|
||||
set(KWSYS_HEADER_ROOT ${CMake_BINARY_DIR}/Source)
|
||||
set(KWSYS_INSTALL_DOC_DIR "${CMAKE_DOC_DIR}")
|
||||
if(CMake_NO_CXX_STANDARD)
|
||||
|
@@ -1,21 +0,0 @@
|
||||
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
file LICENSE.rst 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
|
||||
}
|
@@ -1,23 +0,0 @@
|
||||
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
file LICENSE.rst or https://cmake.org/licensing for details. */
|
||||
#pragma once
|
||||
|
||||
#include "cmConfigure.h" // IWYU pragma: keep
|
||||
|
||||
#if defined(_WIN32) && !defined(CMAKE_BOOTSTRAP)
|
||||
# include "cmsys/ConsoleBuf.hxx"
|
||||
#endif
|
||||
|
||||
class cmConsoleBuf
|
||||
{
|
||||
#if defined(_WIN32) && !defined(CMAKE_BOOTSTRAP)
|
||||
cmsys::ConsoleBuf::Manager m_ConsoleOut;
|
||||
cmsys::ConsoleBuf::Manager m_ConsoleErr;
|
||||
#endif
|
||||
public:
|
||||
cmConsoleBuf();
|
||||
~cmConsoleBuf() = default;
|
||||
cmConsoleBuf(cmConsoleBuf const&) = delete;
|
||||
cmConsoleBuf& operator=(cmConsoleBuf const&) = delete;
|
||||
void SetUTF8Pipes();
|
||||
};
|
Reference in New Issue
Block a user