diff options
-rw-r--r-- | config.h.cmake | 3 | ||||
-rw-r--r-- | libkcal/ConfigureChecks.cmake | 7 |
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() |