diff options
author | Brad King <brad.king@kitware.com> | 2017-02-07 16:39:49 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-02-07 16:39:49 (GMT) |
commit | 73ae67006c952b8804f2566e868bc3acf7539857 (patch) | |
tree | bcd03ebb25251a845795e545d83bea0649808b39 /Utilities/cmcurl/CMakeLists.txt | |
parent | 1df9d5f91944e0b5ba00815d55bb7dc545053b4c (diff) | |
download | CMake-73ae67006c952b8804f2566e868bc3acf7539857.zip CMake-73ae67006c952b8804f2566e868bc3acf7539857.tar.gz CMake-73ae67006c952b8804f2566e868bc3acf7539857.tar.bz2 |
curl: 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.
Backported from upstream curl commit 192466e0 (cmake: Fix passing
_WINSOCKAPI_ macro to compiler, 2017-01-09).
Fixes: #16545
Diffstat (limited to 'Utilities/cmcurl/CMakeLists.txt')
-rw-r--r-- | Utilities/cmcurl/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Utilities/cmcurl/CMakeLists.txt b/Utilities/cmcurl/CMakeLists.txt index 5cef59f..6a34e8d 100644 --- a/Utilities/cmcurl/CMakeLists.txt +++ b/Utilities/cmcurl/CMakeLists.txt @@ -316,7 +316,7 @@ include (CheckCSourceCompiles) # 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) |