diff options
author | Jiri Malak <malak.jiri@gmail.com> | 2017-01-09 21:39:25 +0100 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2017-01-09 20:49:45 -0500 |
commit | 192466e0860e3e0d8760311af90f72430780482e (patch) | |
tree | b99ebde257aec9acf1cbb9f59a8279e5b27ddd45 /CMakeLists.txt | |
parent | 62e67c77722d3bb936201a813fa318c4304db794 (diff) | |
download | curl-192466e0860e3e0d8760311af90f72430780482e.tar.gz |
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
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 31a0d41e3..14ecceba8 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) |