diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-10-08 19:20:15 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-10-08 19:20:15 (GMT) |
commit | 890528e0c3e7784710ad3085efe10b0afe3b26a0 (patch) | |
tree | a4a89dff59b834b40d38232bdb4ef39e29fe4c33 /Source/CTest/Curl | |
parent | 3b3dd31bd4e64d7630040ababe7a3d51c6ce1f40 (diff) | |
download | CMake-890528e0c3e7784710ad3085efe10b0afe3b26a0.zip CMake-890528e0c3e7784710ad3085efe10b0afe3b26a0.tar.gz CMake-890528e0c3e7784710ad3085efe10b0afe3b26a0.tar.bz2 |
COMP: If compiler know strtoll or strtoi64, then no need for compiling strtooff.c
Diffstat (limited to 'Source/CTest/Curl')
-rw-r--r-- | Source/CTest/Curl/CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/CTest/Curl/CMakeLists.txt b/Source/CTest/Curl/CMakeLists.txt index 2cfc761..31fcf93 100644 --- a/Source/CTest/Curl/CMakeLists.txt +++ b/Source/CTest/Curl/CMakeLists.txt @@ -77,7 +77,6 @@ SET(libCurl_SRCS ssluse.c strequal.c strerror.c - strtoofft.c telnet.c timeval.c transfer.c @@ -311,6 +310,7 @@ IF(HAVE_SIGNAL_FUNC AND HAVE_SIGNAL_MACRO) ENDIF(HAVE_SIGNAL_FUNC AND HAVE_SIGNAL_MACRO) CHECK_SYMBOL_EXISTS(uname "${CURL_INCLUDES}" HAVE_UNAME) CHECK_SYMBOL_EXISTS(strtoll "${CURL_INCLUDES}" HAVE_STRTOLL) +CHECK_SYMBOL_EXISTS(_strtoi64 "${CURL_INCLUDES}" HAVE__STRTOI64) CHECK_SYMBOL_EXISTS(strerror_r "${CURL_INCLUDES}" HAVE_STRERROR_R) CHECK_SYMBOL_EXISTS(siginterrupt "${CURL_INCLUDES}" HAVE_SIGINTERRUPT) CHECK_SYMBOL_EXISTS(perror "${CURL_INCLUDES}" HAVE_PERROR) @@ -321,6 +321,11 @@ IF (NOT HAVE_STRTOK_R) strtok.c ) ENDIF (NOT HAVE_STRTOK_R) +IF(NOT HAVE_STRTOLL AND NOT HAVE__STRTOI64) + SET(libCurl_SRCS ${libCurl_SRCS} + strtoofft.c + ) +ENDIF(NOT HAVE_STRTOLL AND NOT HAVE__STRTOI64) # sigaction and sigsetjmp are special. Use special mechanism for # detecting those, but only if previous attempt failed. |