]> source.dussan.org Git - rspamd.git/commitdiff
Use gmime-2.6 if gmime-2.4 is not found.
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Tue, 3 Jul 2012 15:45:03 +0000 (19:45 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Tue, 3 Jul 2012 15:45:03 +0000 (19:45 +0400)
CMakeLists.txt

index 0a4924d9327877f33f2d2f89ad5f56089f3e90d9..2ffe3ae304fd8517bbb964ecb38ee250e7a80d3c 100644 (file)
@@ -466,7 +466,10 @@ ENDIF(HIREDIS_FOUND)
 
 # Try to link with gmime24
 IF(NOT GMIME2_FOUND OR FORCE_GMIME24)
-       pkg_check_modules(GMIME24 REQUIRED gmime-2.4)
+       pkg_check_modules(GMIME24 gmime-2.4)
+       IF(NOT GMIME24_FOUND)
+               pkg_check_modules(GMIME24 REQUIRED gmime-2.6)
+       ENDIF(NOT GMIME24_FOUND)
        SET(GMIME24 "yes")
        # Gmime2
        FOREACH(arg ${GMIME24_CFLAGS})