From a34db903699dead534e74d095ebc09672fda6c75 Mon Sep 17 00:00:00 2001 From: taynpg Date: Fri, 27 Feb 2026 11:32:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- use_tdl/CMakeLists.txt | 3 ++- use_tdl/main.cpp | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/use_tdl/CMakeLists.txt b/use_tdl/CMakeLists.txt index 9b3da3f..efba733 100644 --- a/use_tdl/CMakeLists.txt +++ b/use_tdl/CMakeLists.txt @@ -2,4 +2,5 @@ cmake_minimum_required(VERSION 3.16) project(use_tdl LANGUAGES CXX) -add_executable(use_tdl main.cpp) \ No newline at end of file +add_executable(use_tdl main.cpp) +target_link_libraries(use_tdl PRIVATE zoost) \ No newline at end of file diff --git a/use_tdl/main.cpp b/use_tdl/main.cpp index 9d9cd3a..e0bb07d 100644 --- a/use_tdl/main.cpp +++ b/use_tdl/main.cpp @@ -9,7 +9,9 @@ #include #include #include +#include +using namespace zoost; namespace fs = std::filesystem; struct Args { @@ -98,6 +100,8 @@ int download_with_retry(const Args& args) int main(int argc, char** argv) { + Common::SetOutputU8(); + Args args; CLI::App app{"简单的下载器包装工具"};