summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-03-06 19:06:49 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-03-06 19:06:49 +0000
commit27d6a8f12eeec3f4a346cc09e570b862610075e4 (patch)
tree595924d176925e16fe857870d55312e337b5b87c
parent2c9d3dc01e8a9ba4f2e839c42a1bae188328cb92 (diff)
downloadtdepim-27d6a8f12eeec3f4a346cc09e570b862610075e4.tar.gz
tdepim-27d6a8f12eeec3f4a346cc09e570b862610075e4.zip
[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
-rw-r--r--config.h.cmake3
-rw-r--r--libkcal/ConfigureChecks.cmake7
2 files changed, 9 insertions, 1 deletions
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()