summaryrefslogtreecommitdiffstats
path: root/libkcal/ConfigureChecks.cmake
diff options
context:
space:
mode:
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" )