mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-09 23:44:00 +03:00
libuv: Remove kvm dependency for all BSDs except NetBSD
This dependency is not expressed in upstream libuv. It was added to
CMake by commit 6a497bb0a3 (libuv: Link with kvm on FreeBSD, 2016-09-08,
v3.7.0-rc1~143^2~1). It is needed only on NetBSD.
Fixes: #26722
This commit is contained in:
1 parent
12e76f1e26
commit
4f0fb73816
2 files changed
+4
-5
No files matched your search
@@ -219,7 +219,6 @@ endif()
|
||||
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
|
||||
list(APPEND uv_libraries
|
||||
kvm
|
||||
)
|
||||
list(APPEND uv_headers
|
||||
include/uv/bsd.h
|
||||
@@ -236,7 +235,6 @@ endif()
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "kFreeBSD")
|
||||
list(APPEND uv_libraries
|
||||
freebsd-glue
|
||||
kvm
|
||||
)
|
||||
list(APPEND uv_headers
|
||||
include/uv/bsd.h
|
||||
@@ -268,7 +266,6 @@ endif()
|
||||
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
|
||||
list(APPEND uv_libraries
|
||||
kvm
|
||||
)
|
||||
list(APPEND uv_headers
|
||||
include/uv/bsd.h
|
||||
|
||||
@@ -1783,10 +1783,12 @@ else
|
||||
libs="${libs} -ldl -lrt"
|
||||
;;
|
||||
*kFreeBSD*)
|
||||
libs="${libs} -lkvm -lfreebsd-glue"
|
||||
libs="${libs} -lfreebsd-glue"
|
||||
;;
|
||||
*NetBSD*)
|
||||
libs="${libs} -lkvm"
|
||||
;;
|
||||
*BSD*)
|
||||
libs="${libs} -lkvm"
|
||||
;;
|
||||
*SunOS*)
|
||||
uv_c_flags="${uv_c_flags} -D__EXTENSIONS__ -D_XOPEN_SOURCE=600"
|
||||
|
||||
Reference in new issue
Block a user