Windows: move ENABLE_VLD to CMakeOptions.txt
This commit is contained in:
parent
21474fa308
commit
c713fb3b7d
|
@ -948,10 +948,9 @@ if(ENABLE_FUZZER)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
set(ENABLE_VLD OFF CACHE BOOL "Whether enable Visual Leak Detect in Debug configuration")
|
|
||||||
if(ENABLE_VLD)
|
if(ENABLE_VLD)
|
||||||
include(FindVLD)
|
include(FindVLD)
|
||||||
if(NOT VLD_FOUND)
|
if(NOT VLD_FOUND)
|
||||||
message(FATAL_ERROR "ENABLE_VLD was requested, but not found!")
|
message(FATAL_ERROR "ENABLE_VLD was requested, but not found!")
|
||||||
endif()
|
endif()
|
||||||
message(STATUS "Enabling Visual Leak Detector in Debug configuration")
|
message(STATUS "Enabling Visual Leak Detector in Debug configuration")
|
||||||
|
|
|
@ -63,6 +63,7 @@ endif()
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
option(ENABLE_LTO "Improves performance using Link time Optimization" ON)
|
option(ENABLE_LTO "Improves performance using Link time Optimization" ON)
|
||||||
|
option(ENABLE_VLD "Enable Visual Leak Detect in Debug configuration" OFF)
|
||||||
else()
|
else()
|
||||||
option(ENABLE_LTO "Improves performance using Link time Optimization" OFF)
|
option(ENABLE_LTO "Improves performance using Link time Optimization" OFF)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue