diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-03-27 11:53:05 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-03-27 11:53:05 +0000 |
commit | 1650f051c15f62c12ada20a041927428e00773af (patch) | |
tree | 46bf889449ba528b9b14373e12d5a604964c8403 /CMakeLists.txt | |
parent | ba5e0c97122da57861ffb79dbd44d81bb8e63964 (diff) | |
download | rspamd-1650f051c15f62c12ada20a041927428e00773af.tar.gz rspamd-1650f051c15f62c12ada20a041927428e00773af.zip |
Fix CentOS 5 build.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 3ea4e2ea1..c27884fd4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -538,6 +538,20 @@ INCLUDE_DIRECTORIES(${GLIB2_INCLUDE_DIRS}) LINK_DIRECTORIES(${GLIB2_LIBRARY_DIRS}) +FIND_LIBRARY(LIBZ_LIBRARY NAMES z PATH_SUFFIXES lib64 lib + PATHS + ~/Library/Frameworks + /Library/Frameworks + /usr/local + /usr + /sw + /opt/local + /opt/csw + /opt + DOC "Path where the libz library can be found") +IF(NOT LIBZ_LIBRARY) + MESSAGE(FATAL_ERROR "libz is required for libgmime") +ENDIF(NOT LIBZ_LIBRARY) # Check for libevent FIND_LIBRARY(LIBEVENT_LIBRARY NAMES event PATH_SUFFIXES lib64 lib @@ -955,8 +969,8 @@ AddModules(MODULES_LIST WORKERS_LIST) ################################ SUBDIRS SECTION ########################### +ADD_SUBDIRECTORY(contrib/lgpl) IF(GLIB_COMPAT) - ADD_SUBDIRECTORY(contrib/lgpl) INCLUDE_DIRECTORIES("${CMAKE_CURRENT_SOURCE_DIR}/contrib/lgpl") ENDIF(GLIB_COMPAT) |