summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-05-01 15:25:35 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-05-01 15:25:35 (GMT)
commit6e143754beaf7c275c73b5c501419e3ac0b40839 (patch)
tree37a9cf1abe892a6657d0c4746983b96e622c5829
parent261359919c0cef39b147a819a47188d82d0c5044 (diff)
downloadCMake-6e143754beaf7c275c73b5c501419e3ac0b40839.zip
CMake-6e143754beaf7c275c73b5c501419e3ac0b40839.tar.gz
CMake-6e143754beaf7c275c73b5c501419e3ac0b40839.tar.bz2
ENH: Only compile memdebug when CURL_MALLOC_DEBUG is on
-rw-r--r--Source/CTest/Curl/CMakeLists.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/CTest/Curl/CMakeLists.txt b/Source/CTest/Curl/CMakeLists.txt
index 9c269b1..870ff8f 100644
--- a/Source/CTest/Curl/CMakeLists.txt
+++ b/Source/CTest/Curl/CMakeLists.txt
@@ -59,7 +59,6 @@ SET(libCurl_SRCS
easy.c
security.c
krb4.c
- memdebug.c
http_chunks.c
strtok.c
connect.c
@@ -69,6 +68,14 @@ SET(libCurl_SRCS
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
#IF(WIN32)
# INCLUDE(${LIBCURL_SOURCE_DIR}/Platforms/WindowsCache.cmake)