From e3879f9ab9459e3ec6c0b4444197a5a56e0b18da Mon Sep 17 00:00:00 2001 From: Prince Gupta Date: Sat, 9 Nov 2019 18:13:30 +0530 Subject: [PATCH] CMake: Use libraries from winconf.pri --- cmake/Modules/winconf-mingw.cmake | 4 +++- cmake/Modules/winconf-msvc.cmake | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/cmake/Modules/winconf-mingw.cmake b/cmake/Modules/winconf-mingw.cmake index c2a71e94e..e14598184 100644 --- a/cmake/Modules/winconf-mingw.cmake +++ b/cmake/Modules/winconf-mingw.cmake @@ -6,4 +6,6 @@ list(APPEND LibtorrentRasterbar_CUSTOM_DEFINITIONS -D_FILE_OFFSET_BITS=64 -D__USE_W32_SOCKETS) -link_libraries(advapi32 iphlpapi ole32 powrprof shell32 user32 wsock32 ws2_32) +# libraries from winconf.pri +link_libraries(advapi32 iphlpapi ole32 shell32 user32 wsock32 ws2_32) + diff --git a/cmake/Modules/winconf-msvc.cmake b/cmake/Modules/winconf-msvc.cmake index 2b059b65e..21ad69d8a 100644 --- a/cmake/Modules/winconf-msvc.cmake +++ b/cmake/Modules/winconf-msvc.cmake @@ -1,3 +1,7 @@ include(MacroConfigureMSVCRuntime) set(MSVC_RUNTIME "dynamic") configure_msvc_runtime() + +# libraries from winconf.pri +link_libraries(advapi32 crypt32 Iphlpapi ole32 shell32 User32) +