summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/CTest/Curl/CMakeLists.txt17
1 files changed, 14 insertions, 3 deletions
diff --git a/Source/CTest/Curl/CMakeLists.txt b/Source/CTest/Curl/CMakeLists.txt
index ef3911a..9025ff5 100644
--- a/Source/CTest/Curl/CMakeLists.txt
+++ b/Source/CTest/Curl/CMakeLists.txt
@@ -59,17 +59,23 @@ SET(libCurl_SRCS
transfer.c
strequal.c
easy.c
- security.c
- krb4.c
http_chunks.c
strtok.c
connect.c
llist.c
hash.c
multi.c
- content_encoding.c
)
+
+# if we have Kerberos 4, right now this is never on
+IF(KRB4)
+ SET(libCurl_SRCS ${libCurl_SRCS}
+ krb4.c
+ security.c
+ )
+ENDIF(KRB4)
+
OPTION(CURL_MALLOC_DEBUG "Debug mallocs in Curl" OFF)
MARK_AS_ADVANCED(CURL_MALLOC_DEBUG)
IF(CURL_MALLOC_DEBUG)
@@ -78,6 +84,7 @@ IF(CURL_MALLOC_DEBUG)
)
ENDIF(CURL_MALLOC_DEBUG)
+
# On windows preload settings
IF(WIN32)
INCLUDE(${LIBCURL_SOURCE_DIR}/Platforms/WindowsCache.cmake)
@@ -381,6 +388,10 @@ IF(NOT HAVE_ZLIB_H)
SET(HAVE_LIBZ 0)
ENDIF(NOT HAVE_ZLIB_H)
+IF(HAVE_LIBZ)
+ SET(libCurl_SRCS ${libCurl_SRCS} content_encoding.c)
+ENDIF(HAVE_LIBZ)
+
# Check for nonblocking
SET(HAVE_SOME_NONBLOCK 0)