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.
This commit is contained in:
Brad King 2016-09-09 11:11:40 -04:00
parent 6a497bb0a3
commit c6d83a15d8
1 changed files with 6 additions and 0 deletions

View File

@ -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
)