$NetBSD: patch-libs_ksysguard_processcore_CMakeLists.txt,v 1.1 2012/03/19 19:44:03 markd Exp $ --- libs/ksysguard/processcore/CMakeLists.txt.orig 2010-06-16 12:02:57.000000000 +0000 +++ libs/ksysguard/processcore/CMakeLists.txt @@ -18,7 +18,7 @@ target_link_libraries(processcore ${KDE4 target_link_libraries(processcore LINK_INTERFACE_LIBRARIES ${KDE4_KDECORE_LIBS} ) if( ${CMAKE_SYSTEM_NAME} MATCHES "NetBSD" ) message(STATUS "Adding kvm library on NetBSD") - target_link_libraries(processcore kvm) + target_link_libraries(processcore kvm ${RT_LIB_SCHED}) endif( ${CMAKE_SYSTEM_NAME} MATCHES "NetBSD" ) set_target_properties(processcore PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} ) @@ -39,6 +39,10 @@ set(ksysguardprocesslist_helper_srcs kde4_add_executable(ksysguardprocesslist_helper ${ksysguardprocesslist_helper_srcs}) target_link_libraries(ksysguardprocesslist_helper ${KDE4_KDECORE_LIBS}) +if( ${CMAKE_SYSTEM_NAME} MATCHES "NetBSD" ) + message(STATUS "Adding kvm library on NetBSD") + target_link_libraries(ksysguardprocesslist_helper kvm) +endif( ${CMAKE_SYSTEM_NAME} MATCHES "NetBSD" ) install(TARGETS ksysguardprocesslist_helper DESTINATION ${LIBEXEC_INSTALL_DIR}) kde4_install_auth_helper_files(ksysguardprocesslist_helper org.kde.ksysguard.processlisthelper root)