curl/CMake
Sergei Nikulov ec80b1f414 CMake: fix winsock2 detection on windows
Set CMAKE_REQUIRED_DEFINITIONS to include definitions needed to get
the winsock2 API from windows.h.  Simplify the order of checks to
avoid extra conditions.

Use check_include_file instead of check_include_file_concat to look
for OpenSSL headers.  They do not need to participate in a sequence
of dependent system headers.  Also they may cause winsock.h to be
included before ws2tcpip.h, causing the latter to not be detected
in the sequence.

Reviewed-by: Brad King <brad.king@kitware.com>
2015-02-19 20:11:04 +01:00
..
Platforms cmake: fix HAVE_GETHOSTNAME definition 2014-11-10 09:07:50 +01:00
CMakeConfigurableFile.in
CurlTests.c
FindCARES.cmake
FindGSS.cmake CMake: fix winsock2 detection on windows 2015-02-19 20:11:04 +01:00
FindLibSSH2.cmake
Macros.cmake CMake: Simplify if() conditions on check result variables 2014-11-19 11:35:15 +01:00
OtherTests.cmake cmake: fix struct sockaddr_storage check 2014-11-03 09:10:54 +01:00
Utilities.cmake