aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-02 01:59:39 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-02 01:59:39 +0300
commit90924723163def8f852e5940fad4d0a1c44b784d (patch)
tree28aed3516a4f020598f7bd6a1db02e05b889e19f /CMakeLists.txt
parentde7c8a550a1bbc862c50187d66defcc87f0dece3 (diff)
downloadrspamd-90924723163def8f852e5940fad4d0a1c44b784d.tar.gz
rspamd-90924723163def8f852e5940fad4d0a1c44b784d.zip
* Link with gmime24 if gmime22 is not found
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 087dc2c7a..e86c56999 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -60,7 +60,12 @@ IF(NOT LEX_EXECUTABLE OR NOT YACC_EXECUTABLE)
ENDIF(NOT LEX_EXECUTABLE OR NOT YACC_EXECUTABLE)
pkg_check_modules(GLIB2 REQUIRED glib-2.0>=2.10)
-pkg_check_modules(GMIME2 REQUIRED gmime-2.0)
+pkg_check_modules(GMIME2 gmime-2.0)
+
+# Try to link with gmime24
+IF(NOT GMIME2_FOUND)
+ pkg_check_modules(GMIME2 REQUIRED gmime-2.4)
+ENDIF(NOT GMIME2_FOUND)
IF(NOT GLIB2_FOUND OR NOT GMIME2_FOUND)
MESSAGE(FATAL_ERROR "Error: gmime2 and glib2 are required for rspamd")