From bb23366912fef3d395f297d606b9407819b92824 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sat, 19 Oct 2019 14:02:47 +0800 Subject: [PATCH] Fix missing libraries in cmake-mingw build --- cmake/Modules/winconf-mingw.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/Modules/winconf-mingw.cmake b/cmake/Modules/winconf-mingw.cmake index ace955c5a..c2a71e94e 100644 --- a/cmake/Modules/winconf-mingw.cmake +++ b/cmake/Modules/winconf-mingw.cmake @@ -3,7 +3,7 @@ if (("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") OR ("${CMAKE_BUILD_TYPE}" STREQUAL endif () list(APPEND LibtorrentRasterbar_CUSTOM_DEFINITIONS - -D__USE_W32_SOCKETS - -D_FILE_OFFSET_BITS=64) + -D_FILE_OFFSET_BITS=64 + -D__USE_W32_SOCKETS) -link_libraries(advapi32 shell32 user32 wsock32 ws2_32 powrprof) +link_libraries(advapi32 iphlpapi ole32 powrprof shell32 user32 wsock32 ws2_32)