Windows: move ENABLE_VLD to CMakeOptions.txt

This commit is contained in:
Pascal Quantin 2021-04-26 21:37:06 +02:00
parent 21474fa308
commit c713fb3b7d
2 changed files with 2 additions and 2 deletions

View File

@ -948,10 +948,9 @@ if(ENABLE_FUZZER)
endif()
if(MSVC)
set(ENABLE_VLD OFF CACHE BOOL "Whether enable Visual Leak Detect in Debug configuration")
if(ENABLE_VLD)
include(FindVLD)
if(NOT VLD_FOUND)
if(NOT VLD_FOUND)
message(FATAL_ERROR "ENABLE_VLD was requested, but not found!")
endif()
message(STATUS "Enabling Visual Leak Detector in Debug configuration")

View File

@ -63,6 +63,7 @@ endif()
if (WIN32)
option(ENABLE_LTO "Improves performance using Link time Optimization" ON)
option(ENABLE_VLD "Enable Visual Leak Detect in Debug configuration" OFF)
else()
option(ENABLE_LTO "Improves performance using Link time Optimization" OFF)
endif()