ENH: Only compile memdebug when CURL_MALLOC_DEBUG is on
This commit is contained in:
parent
261359919c
commit
6e143754be
|
@ -59,7 +59,6 @@ SET(libCurl_SRCS
|
||||||
easy.c
|
easy.c
|
||||||
security.c
|
security.c
|
||||||
krb4.c
|
krb4.c
|
||||||
memdebug.c
|
|
||||||
http_chunks.c
|
http_chunks.c
|
||||||
strtok.c
|
strtok.c
|
||||||
connect.c
|
connect.c
|
||||||
|
@ -69,6 +68,14 @@ SET(libCurl_SRCS
|
||||||
content_encoding.c
|
content_encoding.c
|
||||||
)
|
)
|
||||||
|
|
||||||
|
OPTION(CURL_MALLOC_DEBUG "Debug mallocs in Curl" OFF)
|
||||||
|
MARK_AS_ADVANCED(CURL_MALLOC_DEBUG)
|
||||||
|
IF(CURL_MALLOC_DEBUG)
|
||||||
|
SET(libCurl_SRCS ${libCurl_SRCS}
|
||||||
|
memdebug.c
|
||||||
|
)
|
||||||
|
ENDIF(CURL_MALLOC_DEBUG)
|
||||||
|
|
||||||
# On windows preload settings
|
# On windows preload settings
|
||||||
#IF(WIN32)
|
#IF(WIN32)
|
||||||
# INCLUDE(${LIBCURL_SOURCE_DIR}/Platforms/WindowsCache.cmake)
|
# INCLUDE(${LIBCURL_SOURCE_DIR}/Platforms/WindowsCache.cmake)
|
||||||
|
|
Loading…
Reference in New Issue