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