Created
May 1, 2014 10:35
-
-
Save larsch/49fe9d448cd4f338d041 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
option(WITH_VLD "With Visual Leak Detection" OFF) | |
if(WITH_VLD AND MSVC) | |
message("Enabling Visual Leak Detector") | |
find_library(VLD vld | |
HINTS "c:/Program Files (x86)/Visual Leak Detector/lib/Win32" "c:/Program Files/Visual Leak Detector/lib/Win32") | |
find_file(VLD_H vld.h | |
HINTS "c:/Program Files (x86)/Visual Leak Detector/include" "c:/Program Files/Visual Leak Detector/include") | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /FIwinsock2.h") | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} \"/FI${VLD_H}\"") | |
get_filename_component(VLD_LIBRARY_DIR "${VLD}" PATH) | |
link_directories("${VLD_LIBRARY_DIR}") | |
endif() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment