diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-05-14 12:17:06 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-05-14 12:17:06 (GMT) |
commit | ce0f0838e19f5fcd77c424e883910836f8cfdd2e (patch) | |
tree | 1f8bdd067a59e0a6738d7acc360a43bf84bafe4c | |
parent | 02f7cfbcbe6156abda04e3f52e534937a45af4bc (diff) | |
download | CMake-ce0f0838e19f5fcd77c424e883910836f8cfdd2e.zip CMake-ce0f0838e19f5fcd77c424e883910836f8cfdd2e.tar.gz CMake-ce0f0838e19f5fcd77c424e883910836f8cfdd2e.tar.bz2 |
ERR: Search for gethostbyname which is the one needed
-rw-r--r-- | Source/CTest/Curl/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CTest/Curl/CMakeLists.txt b/Source/CTest/Curl/CMakeLists.txt index 8c116d0..88ddc4a 100644 --- a/Source/CTest/Curl/CMakeLists.txt +++ b/Source/CTest/Curl/CMakeLists.txt @@ -98,10 +98,10 @@ ENDMACRO(CHECK_LIBRARY_EXISTS_CONCAT) 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("c" gethostname "" NOT_NEED_LIBNSL) +CHECK_LIBRARY_EXISTS("c" gethostbyname "" NOT_NEED_LIBNSL) IF(NOT NOT_NEED_LIBNSL) - CHECK_LIBRARY_EXISTS_CONCAT("nsl" gethostname HAVE_LIBNSL) + CHECK_LIBRARY_EXISTS_CONCAT("nsl" gethostbyname HAVE_LIBNSL) ENDIF(NOT NOT_NEED_LIBNSL) CHECK_LIBRARY_EXISTS_CONCAT("ws2_32" getch HAVE_LIBWS2_32) |