From 90924723163def8f852e5940fad4d0a1c44b784d Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 2 Mar 2009 01:59:39 +0300 Subject: * Link with gmime24 if gmime22 is not found --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') 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") -- cgit v1.2.3