Skip to content
Permalink
Browse files

CMake: Use libraries from winconf.pri

  • Loading branch information
jagannatharjun committed Nov 9, 2019
1 parent c1e0207 commit e3879f9ab9459e3ec6c0b4444197a5a56e0b18da
Showing with 7 additions and 1 deletion.
  1. +3 −1 cmake/Modules/winconf-mingw.cmake
  2. +4 −0 cmake/Modules/winconf-msvc.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)

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

0 comments on commit e3879f9

Please sign in to comment.
You can’t perform that action at this time.