[CMake] Fix broken NetBSD bots

http://lab.llvm.org:8011/builders/lldb-amd64-ninja-netbsd7/builds/4558/steps/cmake%20local/logs/stdio

llvm-svn: 293687
This commit is contained in:
Chris Bieneman 2017-01-31 20:52:41 +00:00
parent 494f277af5
commit 987401bbfe
1 changed files with 5 additions and 4 deletions

View File

@ -163,6 +163,10 @@ if (${get_python_libdir})
endif()
endif()
if (CMAKE_SYSTEM_NAME MATCHES "NetBSD")
set(EXTRA_LIBS kvm)
endif ()
add_lldb_library(lldbHost
${HOST_SOURCES}
@ -173,11 +177,8 @@ add_lldb_library(lldbHost
lldbTarget
lldbUtility
${LLDB_PLUGINS}
${EXTRA_LIBS}
LINK_COMPONENTS
Support
)
if (CMAKE_SYSTEM_NAME MATCHES "NetBSD")
target_link_libraries(lldbHost kvm)
endif ()