summaryrefslogtreecommitdiffstats
path: root/Source/CTest
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-05-05 13:56:32 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-05-05 13:56:32 (GMT)
commit16395e900b4c077a36205f975a655289cc9ba09f (patch)
tree5c9476f9f049e9aa49195e9080acca297724de71 /Source/CTest
parent59e91ac3e4c924df07280916dc81133b31b74754 (diff)
downloadCMake-16395e900b4c077a36205f975a655289cc9ba09f.zip
CMake-16395e900b4c077a36205f975a655289cc9ba09f.tar.gz
CMake-16395e900b4c077a36205f975a655289cc9ba09f.tar.bz2
ERR: Search for getch instead of printf. Looks like printf is special so it does not work. getch does. Also when using -ansi, strdup is not defined. Make sure to use _BSD_SOURCE on all sources that use strdup
Diffstat (limited to 'Source/CTest')
-rw-r--r--Source/CTest/Curl/CMakeLists.txt20
1 files changed, 17 insertions, 3 deletions
diff --git a/Source/CTest/Curl/CMakeLists.txt b/Source/CTest/Curl/CMakeLists.txt
index 5f988ce..b510e84 100644
--- a/Source/CTest/Curl/CMakeLists.txt
+++ b/Source/CTest/Curl/CMakeLists.txt
@@ -99,8 +99,8 @@ CHECK_LIBRARY_EXISTS_CONCAT("nsl" gethostname HAVE_LIBNSL)
CHECK_LIBRARY_EXISTS_CONCAT("dl" dlopen HAVE_LIBDL)
CHECK_LIBRARY_EXISTS_CONCAT("ucb" gethostname HAVE_LIBUCB)
CHECK_LIBRARY_EXISTS_CONCAT("socket" connect HAVE_LIBSOCKET)
-CHECK_LIBRARY_EXISTS_CONCAT("ws2_32" printf HAVE_LIBWS2_32)
-CHECK_LIBRARY_EXISTS_CONCAT("winmm" printf HAVE_LIBWINMM)
+CHECK_LIBRARY_EXISTS_CONCAT("ws2_32" getch HAVE_LIBWS2_32)
+CHECK_LIBRARY_EXISTS_CONCAT("winmm" getch HAVE_LIBWINMM)
CHECK_LIBRARY_EXISTS_CONCAT("z" inflateEnd HAVE_LIBZ)
CHECK_LIBRARY_EXISTS_CONCAT("crypto" CRYPTO_lock HAVE_LIBCRYPTO)
CHECK_LIBRARY_EXISTS_CONCAT("ssl" SSL_connect HAVE_LIBSSL)
@@ -114,7 +114,21 @@ SET(CMAKE_REQUIRED_LIBRARIES ${CURL_LIBS})
# If we have features.h, then do the _BSD_SOURCE magic
CHECK_INCLUDE_FILE("features.h" HAVE_FEATURES_H)
IF(HAVE_FEATURES_H)
- SET_SOURCE_FILES_PROPERTIES(if2ip.c COMPILE_FLAGS -D_BSD_SOURCE)
+ SET_SOURCE_FILES_PROPERTIES(
+ cookie.c
+ easy.c
+ formdata.c
+ getenv.c
+ hash.c
+ http.c
+ if2ip.c
+ mprintf.c
+ multi.c
+ sendf.c
+ telnet.c
+ transfer.c
+ url.c
+ COMPILE_FLAGS -D_BSD_SOURCE)
ENDIF(HAVE_FEATURES_H)
# Check if header file exists and add it to the list.