$OpenBSD: patch-plugins_history2_CMakeLists_txt,v 1.1 2013/12/09 17:21:07 zhuk Exp $
Fix linking.
--- plugins/history2/CMakeLists.txt.orig	Mon Dec  9 15:20:15 2013
+++ plugins/history2/CMakeLists.txt	Mon Dec  9 15:20:35 2013
@@ -21,7 +21,7 @@ kde4_add_kcfg_files(kopete_history2_PART_SRCS history2
 kde4_add_plugin(kopete_history2 ${kopete_history2_PART_SRCS})
 
 
-target_link_libraries(kopete_history2  ${KDE4_KHTML_LIBS} kopete QtSql)
+target_link_libraries(kopete_history2  kopete ${KDE4_KHTML_LIBS} QtSql)
 
 install(TARGETS kopete_history2  DESTINATION ${PLUGIN_INSTALL_DIR})
 
@@ -38,7 +38,7 @@ kde4_add_kcfg_files(kcm_kopete_history2_PART_SRCS hist
 kde4_add_plugin(kcm_kopete_history2 ${kcm_kopete_history2_PART_SRCS})
 
 
-target_link_libraries(kcm_kopete_history2  ${KDE4_KUTILS_LIBS} ${KDE4_KHTML_LIBS} kopete QtSql)
+target_link_libraries(kcm_kopete_history2  kopete ${KDE4_KUTILS_LIBS} ${KDE4_KHTML_LIBS} QtSql)
 
 install(TARGETS kcm_kopete_history2  DESTINATION ${PLUGIN_INSTALL_DIR})
 
