From 27d6a8f12eeec3f4a346cc09e570b862610075e4 Mon Sep 17 00:00:00 2001 From: samelian Date: Sun, 6 Mar 2011 19:06:49 +0000 Subject: [kdepim/libkcal] check if libical version is equal or greater than 0.46 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1223983 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- config.h.cmake | 3 +++ libkcal/ConfigureChecks.cmake | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/config.h.cmake b/config.h.cmake index 9d5298d4e..ef56ac245 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -1,3 +1,6 @@ +// libkcal +#cmakedefine USE_LIBICAL_0_46 1 + // kalarm #cmakedefine WITHOUT_ARTS 1 diff --git a/libkcal/ConfigureChecks.cmake b/libkcal/ConfigureChecks.cmake index 90edc7f33..b4485ec3f 100644 --- a/libkcal/ConfigureChecks.cmake +++ b/libkcal/ConfigureChecks.cmake @@ -9,7 +9,12 @@ # ################################################# +# libical pkg_search_module( LIBICAL libical ) -if( NOT LIBICAL_FOUND ) +if( LIBICAL_FOUND ) + if( NOT (LIBICAL_VERSION VERSION_LESS "0.46") ) + set( USE_LIBICAL_0_46 1 CACHE INTERNAL "" FORCE ) + endif( ) +else( ) tde_message_fatal( "libical are required, but not found on your system" ) endif() -- cgit v1.2.1