branches/work/kdepim-3.5.5+/kpilot/conduits
Adriaan de Groot
groot at kde.org
Wed Dec 27 15:01:40 CET 2006
SVN commit 616950 by adridg:
Only try building the stuff that depends on KDE PIM headers if the headers are there. I can't seem to find a 'find include' macro that obeys whatever include paths are in effect (ie. taking the settings from include_directories), so look in the single KDE3 include dir. This precludes installing PIM in a different prefix, though.
(CC -buildsystem for advice in pulling in the right include dir)
CCMAIL: kde-buildsystem at kde.org
M +8 -1 branches/work/kdepim-3.5.5+/kpilot/conduits/CMakeLists.txt
--- branches/work/kdepim-3.5.5+/kpilot/conduits/CMakeLists.txt #616949:616950
@@ -13,8 +13,15 @@
add_subdirectory(popmail)
add_subdirectory(sysinfoconduit)
add_subdirectory(timeconduit)
-add_subdirectory(vcalconduit)
+FIND_PATH( HAVE_CALENDARLOCAL_H "libkcal/calendarlocal.h" ${KDE3_INCLUDE_DIR} )
+
+IF (HAVE_CALENDARLOCAL_H)
+ add_subdirectory(vcalconduit)
+ELSE (HAVE_CALENDARLOCAL_H)
+ MESSAGE(STATUS "No KDE PIM development headers were found.")
+ENDIF (HAVE_CALENDARLOCAL_H)
+
###
#
# MAL seems to be broken, or the MAL API has changed somewhat
More information about the Kde-buildsystem
mailing list