Skip to content

Commit

Permalink
Merge pull request #63 from GreatFruitOmsk/fix-msvc2015
Browse files Browse the repository at this point in the history
Fix CMake configuration issue with MSVC 2015.
  • Loading branch information
hintjens committed Sep 8, 2015
2 parents cf38d9b + 415916d commit 759790c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ check_include_files(windows.h ZMQ_HAVE_WINDOWS)
check_include_files(sys/uio.h ZMQ_HAVE_UIO)
check_include_files(sys/eventfd.h ZMQ_HAVE_EVENTFD)

check_library_exists(ws2_32 printf "" HAVE_WS2_32) # TODO: Why doesn't something logical like WSAStartup work?
check_library_exists(ws2 printf "" HAVE_WS2)
check_library_exists(rpcrt4 printf "" HAVE_RPCRT4) # UuidCreateSequential
check_library_exists(iphlpapi printf "" HAVE_IPHLAPI) # GetAdaptersAddresses
check_library_exists(ws2_32 WSAStartup "" HAVE_WS2_32)
check_library_exists(ws2 WSAStartup "" HAVE_WS2)
check_library_exists(rpcrt4 UuidCreate "" HAVE_RPCRT4)
check_library_exists(iphlpapi GetNetworkParams "" HAVE_IPHLAPI)

check_cxx_symbol_exists(SO_PEERCRED sys/socket.h ZMQ_HAVE_SO_PEERCRED)
check_cxx_symbol_exists(LOCAL_PEERCRED sys/socket.h ZMQ_HAVE_LOCAL_PEERCRED)
Expand Down

0 comments on commit 759790c

Please sign in to comment.