aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRui Abreu Ferreira <raf-ep@gmx.com>2015-06-08 21:54:34 +0100
committerSeth Jackson <sethjackson@gmail.com>2015-09-09 17:44:22 -0400
commitb50cc42eb7afda714f3678a627ff6c55d342bc30 (patch)
treebe2adcd5bc349d8271be25b510673b5f1e90e3be
parentde3689a46fe6b3d22a99275a08505169baa795e2 (diff)
downloadrneovim-b50cc42eb7afda714f3678a627ff6c55d342bc30.tar.gz
rneovim-b50cc42eb7afda714f3678a627ff6c55d342bc30.tar.bz2
rneovim-b50cc42eb7afda714f3678a627ff6c55d342bc30.zip
Windows: Link against libraries libuv needs on Windows.
-rw-r--r--cmake/FindLibUV.cmake20
1 files changed, 20 insertions, 0 deletions
diff --git a/cmake/FindLibUV.cmake b/cmake/FindLibUV.cmake
index c2f22d557b..8542100e67 100644
--- a/cmake/FindLibUV.cmake
+++ b/cmake/FindLibUV.cmake
@@ -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