From fd0e24d2cb4c59eeeb24e8b7c81c3a783b689213 Mon Sep 17 00:00:00 2001 From: George Zhao Date: Mon, 20 Jul 2020 11:37:57 +0200 Subject: [PATCH] build,win: link to user32.lib and advapi32.lib PR-URL: https://github.com/libuv/libuv/pull/2908 Reviewed-By: Ben Noordhuis --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2518c747..4e107f03 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -107,6 +107,8 @@ if(WIN32) list(APPEND uv_defines WIN32_LEAN_AND_MEAN _WIN32_WINNT=0x0600) list(APPEND uv_libraries psapi + user32 + advapi32 iphlpapi userenv ws2_32)