qBittorrent/cmake/Modules/winconf-mingw.cmake
Vladimir Golovnev (Glassez) 6bfa4370b7
CMake: Fix Windows build
2019-08-06 21:50:39 +03:00

9 lines
315 B
CMake

if (("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") OR ("${CMAKE_BUILD_TYPE}" STREQUAL "RelWithDebInfo"))
link_libraries(-Wl,--dynamicbase)
endif ()
list(APPEND LibtorrentRasterbar_CUSTOM_DEFINITIONS
-D__USE_W32_SOCKETS
-D_FILE_OFFSET_BITS=64)
link_libraries(advapi32 shell32 user32 wsock32 ws2_32 powrprof)