From: Jiri Malak Date: Mon, 9 Jan 2017 20:39:25 +0000 (+0100) Subject: cmake: Fix passing _WINSOCKAPI_ macro to compiler X-Git-Tag: curl-7_53_0~114 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=192466e0860e3e0d8760311af90f72430780482e;p=thirdparty%2Fcurl.git cmake: Fix passing _WINSOCKAPI_ macro to compiler Define _WINSOCKAPI_ blank rather than to 1 in order to match the value used by Microsoft's winsock header files. Closes https://github.com/curl/curl/pull/1195 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 31a0d41e35..14ecceba8e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -251,7 +251,7 @@ include (CMakeDependentOption) # On windows preload settings if(WIN32) - set(CMAKE_REQUIRED_DEFINITIONS "${CMAKE_REQUIRED_DEFINITIONS} -D_WINSOCKAPI_") + set(CMAKE_REQUIRED_DEFINITIONS "${CMAKE_REQUIRED_DEFINITIONS} -D_WINSOCKAPI_=") include(${CMAKE_CURRENT_SOURCE_DIR}/CMake/Platforms/WindowsCache.cmake) endif(WIN32)