$NetBSD$

--- processcore/CMakeLists.txt.orig	2020-05-05 14:47:30.000000000 +0000
+++ processcore/CMakeLists.txt
@@ -33,7 +33,7 @@ target_link_libraries(processcore
 
 if( ${CMAKE_SYSTEM_NAME} MATCHES "NetBSD" )
   message(STATUS "Adding kvm library on NetBSD")
-  target_link_libraries(processcore kvm)
+  target_link_libraries(processcore PRIVATE kvm ${RT_LIB_SCHED})
 endif()
 
 if(NOT HAVE_CLOCK_GETTIME_C)
@@ -72,7 +72,7 @@ set(ksysguardprocesslist_helper_srcs
     processes_base_p.cpp)
 
 add_executable(ksysguardprocesslist_helper ${ksysguardprocesslist_helper_srcs})
-target_link_libraries(ksysguardprocesslist_helper Qt5::Core KF5::AuthCore KF5::I18n)
+target_link_libraries(ksysguardprocesslist_helper Qt5::Core KF5::AuthCore KF5::I18n ${KVM_LIB})
 install(TARGETS ksysguardprocesslist_helper DESTINATION ${KAUTH_HELPER_INSTALL_DIR})
 
 kauth_install_helper_files(ksysguardprocesslist_helper org.kde.ksysguard.processlisthelper root)
