diff options
author | Brad King <brad.king@kitware.com> | 2018-09-20 13:31:30 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-09-20 13:31:57 (GMT) |
commit | cf1764b395eabebcee6908f699493bf12b4b0b4b (patch) | |
tree | 6fa35014d5ae48d52a560dd5ed62597b8f16f91c | |
parent | 2d119e53093c9489c80ce9bc3f21eadc254b6e10 (diff) | |
parent | 7e33050558bd7807f5b718f5f0d170159cc532ee (diff) | |
download | CMake-cf1764b395eabebcee6908f699493bf12b4b0b4b.zip CMake-cf1764b395eabebcee6908f699493bf12b4b0b4b.tar.gz CMake-cf1764b395eabebcee6908f699493bf12b4b0b4b.tar.bz2 |
Merge topic '18375-kfreebsd-bootstrap'
7e33050558 libuv: Add kFreeBSD platform-specific files
6b7b54d476 bootstrap: Add missing libraries for kFreeBSD
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2394
-rw-r--r-- | Utilities/cmlibuv/CMakeLists.txt | 16 | ||||
-rwxr-xr-x | bootstrap | 3 |
2 files changed, 19 insertions, 0 deletions
diff --git a/Utilities/cmlibuv/CMakeLists.txt b/Utilities/cmlibuv/CMakeLists.txt index ba1638e..a503041 100644 --- a/Utilities/cmlibuv/CMakeLists.txt +++ b/Utilities/cmlibuv/CMakeLists.txt @@ -208,6 +208,22 @@ if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") ) endif() +if(CMAKE_SYSTEM_NAME STREQUAL "kFreeBSD") + list(APPEND uv_libraries + freebsd-glue + kvm + ) + list(APPEND uv_headers + include/uv-bsd.h + ) + list(APPEND uv_sources + src/unix/bsd-ifaddrs.c + src/unix/freebsd.c + src/unix/kqueue.c + src/unix/posix-hrtime.c + ) +endif() + if(CMAKE_SYSTEM_NAME STREQUAL "NetBSD") list(APPEND uv_libraries kvm @@ -1370,6 +1370,9 @@ else uv_c_flags="${uv_c_flags} -D_GNU_SOURCE" libs="${libs} -ldl -lrt" ;; + *kFreeBSD*) + libs="${libs} -lkvm -lfreebsd-glue" + ;; *BSD*) libs="${libs} -lkvm" ;; |