diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-27 16:28:12 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-27 16:28:12 +0300 |
commit | f08474cf2913f85341c46331d58a71793fdf3d0a (patch) | |
tree | f77e6e74a985427f2fa72b0b4152b18bf47dcce3 | |
parent | 7ca00ea032e4e53641640daa1682af21d1038a43 (diff) | |
download | rspamd-f08474cf2913f85341c46331d58a71793fdf3d0a.tar.gz rspamd-f08474cf2913f85341c46331d58a71793fdf3d0a.zip |
* Fix build without perl
-rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 07e61b18b..b55da34c4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -116,6 +116,15 @@ IF(NOT LIBEVENT_LIBRARY) MESSAGE(FATAL_ERROR "libevent is required for building rspamd") ENDIF(NOT LIBEVENT_LIBRARY) +FIND_PATH(LIBEVENT_INCLUDE event.h PATHS /opt/include + /usr/include + /usr/local/include + DOC "Path where the libevent header files can be found") + +GET_FILENAME_COMPONENT(LIBEVENT_PATH "${LIBEVENT_LIBRARY}" PATH) +INCLUDE_DIRECTORIES("${LIBEVENT_INCLUDE}") +LINK_DIRECTORIES("${LIBEVENT_PATH}") + FIND_LIBRARY(LIBUTIL_LIBRARY NAMES util PATHS /lib /opt/lib /usr/lib |