2018-06-06 15:56:42 +03:00
|
|
|
if (STACKTRACE)
|
2015-11-06 21:03:18 +03:00
|
|
|
if ("${WINXXBITS}" STREQUAL "Win64")
|
|
|
|
add_compile_options(-Zi)
|
|
|
|
else ("${WINXXBITS}" STREQUAL "Win64")
|
|
|
|
# i686 arch requires frame pointer preservation
|
|
|
|
add_compile_options(-Oy-)
|
|
|
|
endif ("${WINXXBITS}" STREQUAL "Win64")
|
|
|
|
link_libraries(dbghelp.lib)
|
2018-06-06 15:56:42 +03:00
|
|
|
endif (STACKTRACE)
|
2015-11-06 21:03:18 +03:00
|
|
|
|
|
|
|
# Enable Wide characters
|
|
|
|
add_definitions(-DTORRENT_USE_WPATH)
|
|
|
|
|
|
|
|
if (NOT QT5)
|
|
|
|
# Qt4 does not detect it itself
|
|
|
|
add_definitions(-DQ_COMPILER_INITIALIZER_LISTS)
|
|
|
|
endif (NOT QT5)
|
|
|
|
|
|
|
|
include(MacroConfigureMSVCRuntime)
|
|
|
|
set(MSVC_RUNTIME "dynamic")
|
|
|
|
configure_msvc_runtime()
|