fix: windows下通过mingw编译报错 (#4617)

This commit is contained in:
张传峰
2026-01-03 23:11:45 +08:00
committed by GitHub
parent 1e6a8964cc
commit 1191f15132

View File

@@ -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()