summaryrefslogtreecommitdiffstats
path: root/libkcal/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2019-03-28 22:56:13 +0900
committerSlávek Banko <slavek.banko@axis.cz>2019-04-01 18:36:29 +0200
commit27b2114fed33b52e9e4b1b03652ac345c354155f (patch)
tree69c778ce5e82191f6fe8cbfd2b4af21fada76e0d /libkcal/ConfigureChecks.cmake
parent9d6e89d4db97c351466d41b958605091075563b5 (diff)
downloadtdepim-27b2114fed33b52e9e4b1b03652ac345c354155f.tar.gz
tdepim-27b2114fed33b52e9e4b1b03652ac345c354155f.zip
Fixed support for libical version prior to 3. This is required for libkcal tests to work fine on older distributions.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 858a7e560af13f2b6fe8849c717997c2238763fd)
Diffstat (limited to 'libkcal/ConfigureChecks.cmake')
-rw-r--r--libkcal/ConfigureChecks.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/libkcal/ConfigureChecks.cmake b/libkcal/ConfigureChecks.cmake
index b4485ec3f..3b325187b 100644
--- a/libkcal/ConfigureChecks.cmake
+++ b/libkcal/ConfigureChecks.cmake
@@ -12,8 +12,13 @@
# libical
pkg_search_module( LIBICAL libical )
if( LIBICAL_FOUND )
+ # check for libical >= 3.0
+ if( NOT (LIBICAL_VERSION VERSION_LESS "3.0") )
+ add_definitions(-DUSE_LIBICAL_3_0)
+ endif( )
+ # check for libical >= 0.46
if( NOT (LIBICAL_VERSION VERSION_LESS "0.46") )
- set( USE_LIBICAL_0_46 1 CACHE INTERNAL "" FORCE )
+ add_definitions(-DUSE_LIBICAL_0_46)
endif( )
else( )
tde_message_fatal( "libical are required, but not found on your system" )