From 621c4bb05d0ccff447ecee99765894c1263cd96a Mon Sep 17 00:00:00 2001 From: David Capello Date: Wed, 20 May 2015 16:24:26 -0300 Subject: [PATCH] Link with dbghelp when memory-leak detection is enabled --- src/base/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/base/CMakeLists.txt b/src/base/CMakeLists.txt index 133428467..25e0d1115 100644 --- a/src/base/CMakeLists.txt +++ b/src/base/CMakeLists.txt @@ -84,3 +84,7 @@ if(WIN32) endif() add_library(base-lib ${BASE_SOURCES}) + +if(ENABLE_MEMLEAK AND MSVC) + target_link_libraries(base-lib dbghelp) +endif()