diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-05-01 15:25:35 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-05-01 15:25:35 (GMT) |
commit | 6e143754beaf7c275c73b5c501419e3ac0b40839 (patch) | |
tree | 37a9cf1abe892a6657d0c4746983b96e622c5829 | |
parent | 261359919c0cef39b147a819a47188d82d0c5044 (diff) | |
download | CMake-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.txt | 9 |
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) |