$NetBSD: patch-processcore_CMakeLists.txt,v 1.1 2025/11/23 20:03:56 markd Exp $

--- processcore/CMakeLists.txt.orig	2025-11-04 15:00:08.000000000 +0000
+++ processcore/CMakeLists.txt
@@ -39,7 +39,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)
@@ -92,7 +92,7 @@ if(ENABLE_KAUTH_HELPER)
     )
 
     add_executable(ksysguardprocesslist_helper ${ksysguardprocesslist_helper_srcs})
-    target_link_libraries(ksysguardprocesslist_helper Qt::Core KF6::AuthCore KF6::I18n)
+    target_link_libraries(ksysguardprocesslist_helper Qt::Core KF6::AuthCore KF6::I18n ${KVM_LIB})
     install(TARGETS ksysguardprocesslist_helper DESTINATION ${KAUTH_HELPER_INSTALL_DIR})
 
     kauth_install_helper_files(ksysguardprocesslist_helper org.kde.ksysguard.processlisthelper root)
