summaryrefslogtreecommitdiff
path: root/CMake/OtherTests.cmake
diff options
context:
space:
mode:
authorJakub Zakrzewski <jzakrzewski@e2ebridge.com>2014-08-08 09:23:26 +0100
committerDaniel Stenberg <daniel@haxx.se>2014-08-25 12:44:24 +0200
commitf646e9075f47e338bf893bf47c6c48c02b440a27 (patch)
tree11e1dd8451b30ef81d1fab3d1915c5d5a080ab07 /CMake/OtherTests.cmake
parentba8795083fe72e170183ebde3cb15e6d21999a54 (diff)
downloadcurl-f646e9075f47e338bf893bf47c6c48c02b440a27.tar.gz
Cmake: Possibility to use OpenLDAP, OpenSSL, LibSSH2 on windows
At this point I can build libcurl on windows. It provides at least the same list of protocols as for linux build and works with our software.
Diffstat (limited to 'CMake/OtherTests.cmake')
-rw-r--r--CMake/OtherTests.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMake/OtherTests.cmake b/CMake/OtherTests.cmake
index 89d004844..9cd5eac9d 100644
--- a/CMake/OtherTests.cmake
+++ b/CMake/OtherTests.cmake
@@ -21,6 +21,9 @@ if(HAVE_WINDOWS_H)
set(EXTRA_DEFINES ${EXTRA_DEFINES}
"__unused7\n#ifndef WIN32_LEAN_AND_MEAN\n#define WIN32_LEAN_AND_MEAN\n#endif\n#define __unused3")
set(signature_call_conv "PASCAL")
+ if(HAVE_LIBWS2_32)
+ set(CMAKE_REQUIRED_LIBRARIES ws2_32)
+ endif()
else(HAVE_WINDOWS_H)
add_header_include(HAVE_SYS_TYPES_H "sys/types.h")
add_header_include(HAVE_SYS_SOCKET_H "sys/socket.h")