[Kde-pim] [PATCH] Boost-related build failure in kdepimlibs

Josh Berry des at condordes.net
Wed Sep 2 04:20:33 BST 2009


Hi,

For the past few days, kdepimlibs has been failing to build for me
because Boost wasn't in the include path, and my install of Boost (on
Gentoo) doesn't live directly in /usr/include.

The fix is to add ${Boost_INCLUDE_DIR} to the include_directories()
list in the toplevel CMakeLists.txt.  Patch follows (it's against my
Git clone of kdepimlibs, but should apply with -p1):


diff --git a/CMakeLists.txt b/CMakeLists.txt
index 291b187..00123a3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -24,7 +24,8 @@ include(MacroLibrary)
 ############### Needed commands before building anything ###############

 add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
-include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES})
+include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES}
+                     ${Boost_INCLUDE_DIR})


 ############### Find the stuff we need ###############


Can someone please review/commit?

Thanks,
Josh

P.S. Please explicitly CC me on replies, as I'm not directly subscribed.
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list