diff options
author | Ken Martin <ken.martin@kitware.com> | 2004-07-13 17:05:35 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2004-07-13 17:05:35 (GMT) |
commit | be990132da80591e652d1b159a7dd60e8379412b (patch) | |
tree | 5a84d26946573ac0a680ef88e6728e53c47e46a9 /Source/CTest/Curl | |
parent | 7f31f95b546e25cb5faef4ce5a986602c2334f35 (diff) | |
download | CMake-be990132da80591e652d1b159a7dd60e8379412b.zip CMake-be990132da80591e652d1b159a7dd60e8379412b.tar.gz CMake-be990132da80591e652d1b159a7dd60e8379412b.tar.bz2 |
fix warnign on OSX
Diffstat (limited to 'Source/CTest/Curl')
-rw-r--r-- | Source/CTest/Curl/CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/CTest/Curl/CMakeLists.txt b/Source/CTest/Curl/CMakeLists.txt index bf4edf0..7a54f72 100644 --- a/Source/CTest/Curl/CMakeLists.txt +++ b/Source/CTest/Curl/CMakeLists.txt @@ -60,7 +60,6 @@ SET(libCurl_SRCS strequal.c easy.c http_chunks.c - strtok.c connect.c llist.c hash.c @@ -68,6 +67,7 @@ SET(libCurl_SRCS ) + # if we have Kerberos 4, right now this is never on IF(KRB4) SET(libCurl_SRCS ${libCurl_SRCS} @@ -259,6 +259,12 @@ IF(HAVE_SIGNAL_FUNC AND HAVE_SIGNAL_MACRO) SET(HAVE_SIGNAL 1) ENDIF(HAVE_SIGNAL_FUNC AND HAVE_SIGNAL_MACRO) +# only build compat strtok if we need to +IF (NOT HAVE_STRTOK_R) + SET(libCurl_SRCS ${libCurl_SRCS} + strtok.c + ) +ENDIF (NOT HAVE_STRTOK_R) # sigaction and sigsetjmp are special. Use special mechanism for # detecting those, but only if previous attempt failed. |