diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-03-28 22:56:13 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-03-28 22:56:13 +0900 |
commit | 858a7e560af13f2b6fe8849c717997c2238763fd (patch) | |
tree | dc2c3c96f3a591f8a2b21a94ca8cc4a4e63c3084 /libkcal/ConfigureChecks.cmake | |
parent | 48af72cbe8a4f0cc22de3e2ceda5db47ca922759 (diff) | |
download | tdepim-858a7e560af13f2b6fe8849c717997c2238763fd.tar.gz tdepim-858a7e560af13f2b6fe8849c717997c2238763fd.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>
Diffstat (limited to 'libkcal/ConfigureChecks.cmake')
-rw-r--r-- | libkcal/ConfigureChecks.cmake | 7 |
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" ) |