Skip to content
This repository
Browse code

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...
commit f9c81ccbd1c33b486207a1b6d2c020735ea2d850 1 parent e49a2bf
Matt Rogers authored April 10, 2011
1  CMakeLists.txt
@@ -11,6 +11,7 @@ find_package(SharedDesktopOntologies)
11 11
 
12 12
 if (BUILD_KPARTS)
13 13
 find_package(KdepimLibs REQUIRED)
  14
+include_directories(${KDEPIMLIBS_INCLUDE_DIRS})
14 15
 endif (BUILD_KPARTS)
15 16
 
16 17
 add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
2  src/CMakeLists.txt
@@ -135,7 +135,7 @@ qt4_add_dbus_interfaces(kontact_basket_PLUGIN_SRCS org.kde.basket.basket.xml)
135 135
 
136 136
 add_dependencies(kontact_basketplugin basket)
137 137
 
138  
-target_link_libraries(kontact_basketplugin ${KDE4_CORE_LIBS} ${KDEPIMLIBS_KONTACTINTERFACE_LIBS} kdepim basketcommon kparts kdeui ${KDE4_KPARTS_LIBS})
  138
+target_link_libraries(kontact_basketplugin ${KDE4_CORE_LIBS} ${KDEPIMLIBS_KONTACTINTERFACE_LIBS} basketcommon kparts kdeui ${KDE4_KPARTS_LIBS})
139 139
 
140 140
 install(TARGETS kontact_basketplugin DESTINATION ${PLUGIN_INSTALL_DIR})
141 141
 install(FILES basket_plugin.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kontact)

0 notes on commit f9c81cc

Please sign in to comment.
Something went wrong with that request. Please try again.