From 1191f15132df8e49e986225f941d9f1432f3931a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E4=BC=A0=E5=B3=B0?= <59160162+zhang-chuanfeng@users.noreply.github.com> Date: Sat, 3 Jan 2026 23:11:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20windows=E4=B8=8B=E9=80=9A=E8=BF=87mingw?= =?UTF-8?q?=E7=BC=96=E8=AF=91=E6=8A=A5=E9=94=99=20(#4617)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/CMakeLists.txt b/server/CMakeLists.txt index e5d52abc..9f063e40 100644 --- a/server/CMakeLists.txt +++ b/server/CMakeLists.txt @@ -50,6 +50,10 @@ target_compile_definitions(MediaServer target_compile_options(MediaServer PRIVATE ${COMPILE_OPTIONS_DEFAULT}) +if(MINGW) + update_cached_list(MK_LINK_LIBRARIES dbghelp) +endif() + if(CMAKE_SYSTEM_NAME MATCHES "Linux") target_link_libraries(MediaServer -Wl,--start-group ${MK_LINK_LIBRARIES} -Wl,--end-group) else()