From 3093751fa47e9ef0e585becf389a8774795232f5 Mon Sep 17 00:00:00 2001 From: "Vladimir Golovnev (Glassez)" Date: Fri, 2 Aug 2019 15:17:36 +0300 Subject: [PATCH] CMake: Fix compilation on Windows with MSVC --- cmake/Modules/winconf-msvc.cmake | 2 +- cmake/Modules/winconf.cmake | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/Modules/winconf-msvc.cmake b/cmake/Modules/winconf-msvc.cmake index 4a662d747..ef7b16f99 100644 --- a/cmake/Modules/winconf-msvc.cmake +++ b/cmake/Modules/winconf-msvc.cmake @@ -4,7 +4,7 @@ if (STACKTRACE) add_compile_options(-Oy-) endif (NOT "${WINXXBITS}" STREQUAL "Win64") add_compile_options(-Zi) - link_libraries(dbghelp.lib /DEBUG) + link_libraries(dbghelp -DEBUG) endif (STACKTRACE) include(MacroConfigureMSVCRuntime) diff --git a/cmake/Modules/winconf.cmake b/cmake/Modules/winconf.cmake index e0bfa96bd..c248742fe 100644 --- a/cmake/Modules/winconf.cmake +++ b/cmake/Modules/winconf.cmake @@ -30,6 +30,7 @@ add_definitions(-DUNICODE -D_CRT_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_DEPRECATE -DNOMINMAX + -DBOOST_ALL_NO_LIB ) # Enable if libtorrent was built with this flag defined