config:配置变更。

This commit is contained in:
taynpg 2025-01-17 14:06:41 +08:00
parent db5ae82828
commit a336e3808b
4 changed files with 16 additions and 14 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@ build
cmake-*
.xmake
compile_commands.json
out

View File

@ -4,19 +4,19 @@ project(transm LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if (MSVC)
add_compile_options(/source-charset:utf-8)
if(MSVC)
add_compile_options(/source-charset:utf-8)
endif()
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND CMAKE_SYSTEM_NAME MATCHES "Windows")
MESSAGE(STATUS "Add MinGW Param.")
add_compile_options(-finput-charset=utf-8)
add_compile_options(-fexec-charset=gbk)
add_compile_options(-Wa,-mbig-obj)
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND CMAKE_SYSTEM_NAME MATCHES "Windows")
message(status "add mingw param.")
add_compile_options(-finput-charset=utf-8)
add_compile_options(-fexec-charset=gbk)
add_compile_options(-Wa,-mbig-obj)
endif()
if(DEFINED IOS_ISH)
message(STATUS "INPUT IOS_ISH ${IOS_ISH}")
message(STATUS "INPUT IOS_ISH ${IOS_ISH}")
endif()
set(CMAKE_DEBUG_POSTFIX "d")
@ -24,11 +24,13 @@ message(STATUS "System: ${CMAKE_SYSTEM_NAME}")
message(STATUS "Compiler CXX ID: ${CMAKE_CXX_COMPILER_ID}")
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib/${CMAKE_BUILD_TYPE})
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/${CMAKE_BUILD_TYPE}/)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY
${PROJECT_BINARY_DIR}/bin/${CMAKE_BUILD_TYPE}/
)
include_directories(3rd)
include_directories(.)
include_directories(build)
include_directories(${PROJECT_BINARY_DIR})
add_subdirectory(ofen)
add_subdirectory(net)
add_subdirectory(util)

View File

@ -19,7 +19,6 @@ CClient::CClient(const std::shared_ptr<spdlog::logger>& logger) : logger_(logger
supported_.push_back("Get");
sleep_.set_timeout(5000);
}
CClient::~CClient()
{
th_run_ = false;