Permalink
Browse files

Fix the build when kdepimlibs is in a different prefix from kdelibs

We can't assume they'll be in the same place.

Patch by Christophe Giboudeaux. Thanks!
  • Loading branch information...
1 parent e49a2bf commit f9c81ccbd1c33b486207a1b6d2c020735ea2d850 @mattr- mattr- committed Apr 11, 2011
Showing with 2 additions and 1 deletion.
  1. +1 −0 CMakeLists.txt
  2. +1 −1 src/CMakeLists.txt
View
@@ -11,6 +11,7 @@ find_package(SharedDesktopOntologies)
if (BUILD_KPARTS)
find_package(KdepimLibs REQUIRED)
+include_directories(${KDEPIMLIBS_INCLUDE_DIRS})
endif (BUILD_KPARTS)
add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
View
@@ -135,7 +135,7 @@ qt4_add_dbus_interfaces(kontact_basket_PLUGIN_SRCS org.kde.basket.basket.xml)
add_dependencies(kontact_basketplugin basket)
-target_link_libraries(kontact_basketplugin ${KDE4_CORE_LIBS} ${KDEPIMLIBS_KONTACTINTERFACE_LIBS} kdepim basketcommon kparts kdeui ${KDE4_KPARTS_LIBS})
+target_link_libraries(kontact_basketplugin ${KDE4_CORE_LIBS} ${KDEPIMLIBS_KONTACTINTERFACE_LIBS} basketcommon kparts kdeui ${KDE4_KPARTS_LIBS})
install(TARGETS kontact_basketplugin DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES basket_plugin.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kontact)

0 comments on commit f9c81cc

Please sign in to comment.