mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
cmake: standardize leak check option
The `GIT_WIN32_LEAKCHECK` option is a debugging option, so it should be `GIT_DEBUG_LEAKCHECK_WIN32`
This commit is contained in:
@@ -26,8 +26,8 @@ if(MSVC)
|
||||
set(CRT_FLAG_RELEASE "/MD")
|
||||
endif()
|
||||
|
||||
if(WIN32_LEAKCHECK)
|
||||
set(GIT_WIN32_LEAKCHECK 1)
|
||||
if(DEBUG_LEAK_CHECKER STREQUAL "win32")
|
||||
set(GIT_DEBUG_LEAKCHECK_WIN32 1)
|
||||
set(CRT_FLAG_DEBUG "${CRT_FLAG_DEBUG}")
|
||||
set(CMAKE_C_STANDARD_LIBRARIES "${CMAKE_C_STANDARD_LIBRARIES} Dbghelp.lib")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user