From f646e9075f47e338bf893bf47c6c48c02b440a27 Mon Sep 17 00:00:00 2001 From: Jakub Zakrzewski Date: Fri, 8 Aug 2014 09:23:26 +0100 Subject: 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. --- CMake/OtherTests.cmake | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CMake') 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") -- cgit v1.2.3