File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -567,12 +567,18 @@ if(ZMQ_HAVE_WINDOWS)
567
567
# Cannot use check_library_exists because the symbol is always declared as char(*)(void)
568
568
set (CMAKE_REQUIRED_LIBRARIES "ws2_32.lib" )
569
569
check_cxx_symbol_exists(WSAStartup "winsock2.h" HAVE_WS2_32)
570
+ if (HAVE_WS2_32)
571
+ set (pkg_config_libs_private "${pkg_config_libs_private} -lws2_32" )
572
+ endif ()
570
573
571
574
set (CMAKE_REQUIRED_LIBRARIES "rpcrt4.lib" )
572
575
check_cxx_symbol_exists(UuidCreateSequential "rpc.h" HAVE_RPCRT4)
573
576
574
577
set (CMAKE_REQUIRED_LIBRARIES "iphlpapi.lib" )
575
578
check_cxx_symbol_exists(GetAdaptersAddresses "winsock2.h;iphlpapi.h" HAVE_IPHLAPI)
579
+ if (HAVE_IPHLAPI)
580
+ set (pkg_config_libs_private "${pkg_config_libs_private} -liphlpapi" )
581
+ endif ()
576
582
check_cxx_symbol_exists(if_nametoindex "iphlpapi.h" HAVE_IF_NAMETOINDEX)
577
583
578
584
set (CMAKE_REQUIRED_LIBRARIES "" )
You can’t perform that action at this time.
0 commit comments