diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-02 01:59:39 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-02 01:59:39 +0300 |
commit | 90924723163def8f852e5940fad4d0a1c44b784d (patch) | |
tree | 28aed3516a4f020598f7bd6a1db02e05b889e19f /CMakeLists.txt | |
parent | de7c8a550a1bbc862c50187d66defcc87f0dece3 (diff) | |
download | rspamd-90924723163def8f852e5940fad4d0a1c44b784d.tar.gz rspamd-90924723163def8f852e5940fad4d0a1c44b784d.zip |
* Link with gmime24 if gmime22 is not found
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 7 |
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") |