diff options
author | Tomasz Moń <desowin@gmail.com> | 2021-03-29 12:10:16 +0200 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2021-04-10 21:53:59 +0000 |
commit | 4bd5830cdaa615a95245e9873f3bae1c42b38dc9 (patch) | |
tree | 415bb067d20016fe4f1145df949b0a2c0783f7b7 /capture | |
parent | 1b1a4281b4a02427e34553b248ea50076f184572 (diff) |
CMake: Add ENABLE_VLD option for MSVC
Calling cmake with -DENABLE_VLD=ON when building with Visual Studio,
results in debug configuration being linked to Visual Leak Detector.
By default, Visual Leak Detector outputs the leak summary to Visual
Studio debug window. When ENABLE_VLD is active, VLD is linked to all
wireshark libraries and executables.
Diffstat (limited to 'capture')
-rw-r--r-- | capture/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/capture/CMakeLists.txt b/capture/CMakeLists.txt index 57a94d78c7..d9378f11bc 100644 --- a/capture/CMakeLists.txt +++ b/capture/CMakeLists.txt @@ -66,6 +66,9 @@ endif(WIN32) set_target_properties(caputils PROPERTIES LINK_FLAGS "${WS_LINK_FLAGS}" FOLDER "Libs") +if(MSVC) + set_target_properties(caputils PROPERTIES LINK_FLAGS_DEBUG "${WS_MSVC_DEBUG_LINK_FLAGS}") +endif() set(CAPCHILD_SRC capture_ifinfo.c @@ -93,6 +96,9 @@ target_link_libraries(capchild set_target_properties(capchild PROPERTIES LINK_FLAGS "${WS_LINK_FLAGS}" FOLDER "Libs") +if(MSVC) + set_target_properties(capchild PROPERTIES LINK_FLAGS_DEBUG "${WS_MSVC_DEBUG_LINK_FLAGS}") +endif() CHECKAPI( NAME |