Browse Source

CMake: Fix compilation on Windows with MSVC

adaptive-webui-19844
Vladimir Golovnev (Glassez) 5 years ago
parent
commit
3093751fa4
No known key found for this signature in database
GPG Key ID: 52A2C7DEE2DFA6F7
  1. 2
      cmake/Modules/winconf-msvc.cmake
  2. 1
      cmake/Modules/winconf.cmake

2
cmake/Modules/winconf-msvc.cmake

@ -4,7 +4,7 @@ if (STACKTRACE)
add_compile_options(-Oy-) add_compile_options(-Oy-)
endif (NOT "${WINXXBITS}" STREQUAL "Win64") endif (NOT "${WINXXBITS}" STREQUAL "Win64")
add_compile_options(-Zi) add_compile_options(-Zi)
link_libraries(dbghelp.lib /DEBUG) link_libraries(dbghelp -DEBUG)
endif (STACKTRACE) endif (STACKTRACE)
include(MacroConfigureMSVCRuntime) include(MacroConfigureMSVCRuntime)

1
cmake/Modules/winconf.cmake

@ -30,6 +30,7 @@ add_definitions(-DUNICODE
-D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE
-D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_DEPRECATE
-DNOMINMAX -DNOMINMAX
-DBOOST_ALL_NO_LIB
) )
# Enable if libtorrent was built with this flag defined # Enable if libtorrent was built with this flag defined

Loading…
Cancel
Save