diff options
author | Sergei Nikulov <sergey.nikulov@gmail.com> | 2014-12-24 00:05:57 +0300 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-02-19 20:11:04 +0100 |
commit | ec80b1f414ef65f8a336be2e3270dcc35593f1b4 (patch) | |
tree | 921d31bdc2b2c7fbdea4891c6ca19496f3015e74 /lib/vtls/polarssl.h | |
parent | 676ac46ff55cf58c3c3005d8ee2c80da3a99e6a0 (diff) |
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>
Diffstat (limited to 'lib/vtls/polarssl.h')
0 files changed, 0 insertions, 0 deletions