summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-03-16 18:28:54 (GMT)
committerBrad King <brad.king@kitware.com>2007-03-16 18:28:54 (GMT)
commit0a1d66024263d01457037093072c2d85bc40e7ce (patch)
tree502f7baf5dbbdfb8be49845e0346d61dd19141fe /Utilities
parent1f639ee76cdf0f2a22d99892b7d7a79de2d79fb4 (diff)
downloadCMake-0a1d66024263d01457037093072c2d85bc40e7ce.zip
CMake-0a1d66024263d01457037093072c2d85bc40e7ce.tar.gz
CMake-0a1d66024263d01457037093072c2d85bc40e7ce.tar.bz2
COMP: Ignore windows sockets on cygwin. Remove duplicate source entry.
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/cmcurl/CMakeLists.txt16
1 files changed, 11 insertions, 5 deletions
diff --git a/Utilities/cmcurl/CMakeLists.txt b/Utilities/cmcurl/CMakeLists.txt
index c794737..290c120 100644
--- a/Utilities/cmcurl/CMakeLists.txt
+++ b/Utilities/cmcurl/CMakeLists.txt
@@ -93,7 +93,7 @@ SET(libCurl_SRCS
strequal.c
strerror.c
# strtok.c - specify later
- strtoofft.c
+ # strtoofft.c - specify later
telnet.c
tftp.c
timeval.c
@@ -219,11 +219,15 @@ MACRO(CHECK_INCLUDE_FILE_CONCAT FILE VARIABLE)
ENDMACRO(CHECK_INCLUDE_FILE_CONCAT)
# Check for header files
-CHECK_INCLUDE_FILE_CONCAT("ws2tcpip.h" HAVE_WS2TCPIP_H)
-CHECK_INCLUDE_FILE_CONCAT("winsock2.h" HAVE_WINSOCK2_H)
+IF(NOT UNIX)
+ CHECK_INCLUDE_FILE_CONCAT("ws2tcpip.h" HAVE_WS2TCPIP_H)
+ CHECK_INCLUDE_FILE_CONCAT("winsock2.h" HAVE_WINSOCK2_H)
+ENDIF(NOT UNIX)
CHECK_INCLUDE_FILE_CONCAT("stdio.h" HAVE_STDIO_H)
-CHECK_INCLUDE_FILE_CONCAT("windows.h" HAVE_WINDOWS_H)
-CHECK_INCLUDE_FILE_CONCAT("winsock.h" HAVE_WINSOCK_H)
+IF(NOT UNIX)
+ CHECK_INCLUDE_FILE_CONCAT("windows.h" HAVE_WINDOWS_H)
+ CHECK_INCLUDE_FILE_CONCAT("winsock.h" HAVE_WINSOCK_H)
+ENDIF(NOT UNIX)
CHECK_INCLUDE_FILE_CONCAT("stddef.h" HAVE_STDDEF_H)
CHECK_INCLUDE_FILE_CONCAT("sys/types.h" HAVE_SYS_TYPES_H)
CHECK_INCLUDE_FILE_CONCAT("inttypes.h" HAVE_INTTYPES_H)
@@ -430,6 +434,8 @@ IF (NOT HAVE_STRTOK_R)
strtok.c
)
ENDIF (NOT HAVE_STRTOK_R)
+
+# only build compat strtoofft if we need to
IF(NOT HAVE_STRTOLL AND NOT HAVE__STRTOI64)
SET(libCurl_SRCS ${libCurl_SRCS}
strtoofft.c