mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Windows: Link against libraries libuv needs on Windows.
This commit is contained in:
parent
de3689a46f
commit
b50cc42eb7
@ -59,6 +59,11 @@ if(HAVE_LIBDL)
|
||||
list(APPEND LIBUV_LIBRARIES dl)
|
||||
endif()
|
||||
|
||||
check_library_exists(iphlpapi GetAdaptersAddresses "iphlpapi.h" HAVE_LIBIPHLPAPI)
|
||||
if(HAVE_LIBIPHLPAPI)
|
||||
list(APPEND LIBUV_LIBRARIES iphlpapi)
|
||||
endif()
|
||||
|
||||
check_library_exists(kstat kstat_lookup "kstat.h" HAVE_LIBKSTAT)
|
||||
if(HAVE_LIBKSTAT)
|
||||
list(APPEND LIBUV_LIBRARIES kstat)
|
||||
@ -79,6 +84,11 @@ if(HAVE_LIBPERFSTAT)
|
||||
list(APPEND LIBUV_LIBRARIES perfstat)
|
||||
endif()
|
||||
|
||||
check_library_exists(psapi GetProcessMemoryInfo "psapi.h" HAVE_LIBPSAPI)
|
||||
if(HAVE_LIBPSAPI)
|
||||
list(APPEND LIBUV_LIBRARIES psapi)
|
||||
endif()
|
||||
|
||||
check_library_exists(rt clock_gettime "time.h" HAVE_LIBRT)
|
||||
if(HAVE_LIBRT)
|
||||
list(APPEND LIBUV_LIBRARIES rt)
|
||||
@ -89,6 +99,16 @@ if(HAVE_LIBSENDFILE)
|
||||
list(APPEND LIBUV_LIBRARIES sendfile)
|
||||
endif()
|
||||
|
||||
check_library_exists(userenv GetUserProfileDirectoryW "userenv.h" HAVE_LIBUSERENV)
|
||||
if(HAVE_LIBUSERENV)
|
||||
list(APPEND LIBUV_LIBRARIES userenv)
|
||||
endif()
|
||||
|
||||
check_library_exists(ws2_32 WSAStartup "winsock2.h" HAVE_LIBWS232)
|
||||
if(HAVE_LIBWS232)
|
||||
list(APPEND LIBUV_LIBRARIES ws2_32)
|
||||
endif()
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
|
||||
# handle the QUIETLY and REQUIRED arguments and set LIBUV_FOUND to TRUE
|
||||
|
Loading…
Reference in New Issue
Block a user