mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-17 07:11:52 +08:00
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:
@@ -181,6 +181,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CMAKE_SYSTEM_NAME STREQUAL "NetBSD")
|
if(CMAKE_SYSTEM_NAME STREQUAL "NetBSD")
|
||||||
|
list(APPEND uv_libraries
|
||||||
|
kvm
|
||||||
|
)
|
||||||
list(APPEND uv_headers
|
list(APPEND uv_headers
|
||||||
include/uv-bsd.h
|
include/uv-bsd.h
|
||||||
)
|
)
|
||||||
@@ -191,6 +194,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "NetBSD")
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
|
if(CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
|
||||||
|
list(APPEND uv_libraries
|
||||||
|
kvm
|
||||||
|
)
|
||||||
list(APPEND uv_headers
|
list(APPEND uv_headers
|
||||||
include/uv-bsd.h
|
include/uv-bsd.h
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user