From c6d83a15d8ac11cba1388e853a9b321ca4e9c87a Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 9 Sep 2016 11:11:40 -0400 Subject: libuv: Link with kvm on NetBSD and OpenBSD We include the `kvm.h` header on these platforms and call kvm APIs. Link with the library to ensure they are available. --- Utilities/cmlibuv/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Utilities/cmlibuv/CMakeLists.txt b/Utilities/cmlibuv/CMakeLists.txt index 8837be6..1b384b5 100644 --- a/Utilities/cmlibuv/CMakeLists.txt +++ b/Utilities/cmlibuv/CMakeLists.txt @@ -181,6 +181,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") endif() if(CMAKE_SYSTEM_NAME STREQUAL "NetBSD") + list(APPEND uv_libraries + kvm + ) list(APPEND uv_headers include/uv-bsd.h ) @@ -191,6 +194,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "NetBSD") endif() if(CMAKE_SYSTEM_NAME STREQUAL "OpenBSD") + list(APPEND uv_libraries + kvm + ) list(APPEND uv_headers include/uv-bsd.h ) -- cgit v0.12