build: OpenBSD: libuv does not use KVM, do not link to it. (#6663)

This commit is contained in:
Edd Barrett
2017-05-03 19:16:06 +01:00
committed by Justin M. Keyes
parent 0502ac47fb
commit 53b38251bb

View File

@@ -65,7 +65,7 @@ if(HAVE_LIBKSTAT)
endif()
check_library_exists(kvm kvm_open "kvm.h" HAVE_LIBKVM)
if(HAVE_LIBKVM)
if(HAVE_LIBKVM AND NOT CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
list(APPEND LIBUV_LIBRARIES kvm)
endif()