mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-28 09:59:20 -05: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
|
cmComputeTargetDepends.cxx
|
||||||
cmConfigureLog.h
|
cmConfigureLog.h
|
||||||
cmConfigureLog.cxx
|
cmConfigureLog.cxx
|
||||||
cmConsoleBuf.h
|
|
||||||
cmConsoleBuf.cxx
|
|
||||||
cmConstStack.h
|
cmConstStack.h
|
||||||
cmConstStack.tcc
|
cmConstStack.tcc
|
||||||
cmCPackPropertiesGenerator.h
|
cmCPackPropertiesGenerator.h
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ set(KWSYS_USE_Base64 1)
|
|||||||
set(KWSYS_USE_MD5 1)
|
set(KWSYS_USE_MD5 1)
|
||||||
set(KWSYS_USE_Process 1)
|
set(KWSYS_USE_Process 1)
|
||||||
set(KWSYS_USE_CommandLineArguments 1)
|
set(KWSYS_USE_CommandLineArguments 1)
|
||||||
set(KWSYS_USE_ConsoleBuf 1)
|
|
||||||
set(KWSYS_HEADER_ROOT ${CMake_BINARY_DIR}/Source)
|
set(KWSYS_HEADER_ROOT ${CMake_BINARY_DIR}/Source)
|
||||||
set(KWSYS_INSTALL_DOC_DIR "${CMAKE_DOC_DIR}")
|
set(KWSYS_INSTALL_DOC_DIR "${CMAKE_DOC_DIR}")
|
||||||
if(CMake_NO_CXX_STANDARD)
|
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();
|
|
||||||
};
|
|
||||||
@@ -322,7 +322,6 @@ CMAKE_CXX_SOURCES="\
|
|||||||
cmComputeLinkDepends \
|
cmComputeLinkDepends \
|
||||||
cmComputeLinkInformation \
|
cmComputeLinkInformation \
|
||||||
cmComputeTargetDepends \
|
cmComputeTargetDepends \
|
||||||
cmConsoleBuf \
|
|
||||||
cmConditionEvaluator \
|
cmConditionEvaluator \
|
||||||
cmConfigureFileCommand \
|
cmConfigureFileCommand \
|
||||||
cmContinueCommand \
|
cmContinueCommand \
|
||||||
|
|||||||
Reference in New Issue
Block a user