mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 05:43:32 -07:00
Improve CMake configuration
Don't search for QtSingleApplication library. Fix building on Windows with MinGW.
This commit is contained in:
parent
e53d4e5ff7
commit
38cf1fb3ee
6 changed files with 36 additions and 115 deletions
|
@ -2,13 +2,15 @@ if (STACKTRACE)
|
|||
if (NOT "${WINXXBITS}" STREQUAL "Win64")
|
||||
add_compile_options(-fno-omit-frame-pointer)
|
||||
endif (NOT "${WINXXBITS}" STREQUAL "Win64")
|
||||
link_libraries(libdbghelp -Wl,--export-all-symbols)
|
||||
link_libraries(dbghelp -Wl,--export-all-symbols)
|
||||
endif (STACKTRACE)
|
||||
|
||||
if (("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") OR ("${CMAKE_BUILD_TYPE}" STREQUAL "RelWithDebInfo"))
|
||||
link_libraries(-Wl,--dynamicbase)
|
||||
endif()
|
||||
endif ()
|
||||
|
||||
# LIBS += libadvapi32 libshell32 libuser32
|
||||
# LIBS += libcrypto.dll libssl.dll libwsock32 libws2_32 libz libiconv.dll
|
||||
# LIBS += libpowrprof
|
||||
list(APPEND LibtorrentRasterbar_CUSTOM_DEFINITIONS
|
||||
-D__USE_W32_SOCKETS
|
||||
-D_FILE_OFFSET_BITS=64)
|
||||
|
||||
link_libraries(advapi32 shell32 user32 wsock32 ws2_32 powrprof)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue