diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-06-15 14:29:51 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-06-22 10:57:29 +0100 |
commit | 5376c8a25208ae4c7c21c2ff1894a5ebb2df6340 (patch) | |
tree | 341db63e590151218700b0d396ce46b02ceb1b4f /CMakeLists.txt | |
parent | 57c21062f261eb595f8e64cd32d7df9604b7e754 (diff) | |
download | rspamd-5376c8a25208ae4c7c21c2ff1894a5ebb2df6340.tar.gz rspamd-5376c8a25208ae4c7c21c2ff1894a5ebb2df6340.zip |
[Project] Bundle libev
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2fe9ff825..122b37246 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -509,8 +509,6 @@ INCLUDE_DIRECTORIES("${CMAKE_SOURCE_DIR}/" "${CMAKE_BINARY_DIR}/src" #Stored in the binary dir "${CMAKE_BINARY_DIR}/src/libcryptobox") -LIST(APPEND CMAKE_REQUIRED_LIBRARIES m) - SET(POE_LOOP "Loop::IO_Poll") SET(TAR "tar") @@ -529,7 +527,6 @@ IF(CMAKE_SYSTEM_NAME MATCHES "^.*BSD$|DragonFly") IF(WITH_LIBUTIL) SET(HAVE_LIBUTIL_H 1) LIST(APPEND RSPAMD_REQUIRED_LIBRARIES util) - LIST(APPEND CMAKE_REQUIRED_LIBRARIES util) CHECK_FUNCTION_EXISTS(pidfile_open HAVE_PIDFILE) CHECK_FUNCTION_EXISTS(pidfile_fileno HAVE_PIDFILE_FILENO) ENDIF() @@ -598,7 +595,7 @@ IF(CMAKE_SYSTEM_NAME STREQUAL "SunOS") ENDIF(CMAKE_SYSTEM_NAME STREQUAL "SunOS") # Now find libraries and headers - +LIST(APPEND RSPAMD_REQUIRED_LIBRARIES "m") IF(ENABLE_LUAJIT MATCHES "ON") #ProcessPackage(LUAJIT luajit) SET(WITH_LUA 1) @@ -1075,19 +1072,6 @@ ELSE(HAVE_SIGINFO_H) CHECK_SYMBOL_EXISTS(SA_SIGINFO "signal.h" HAVE_SA_SIGINFO) ENDIF(HAVE_SIGINFO_H) -# Some hack for libevent 2.0 -CHECK_C_SOURCE_COMPILES ("#include <event.h> - #if !defined(LIBEVENT_VERSION_NUMBER) || LIBEVENT_VERSION_NUMBER < 0x02000000 - #error Unsupported - #endif - int main() { return 0;}" HAVE_LIBEVENT2) -CHECK_C_SOURCE_COMPILES ("#include <event2/event.h> - int main() { return EVENT_BASE_FLAG_NO_CACHE_TIME; }" - HAVE_EVENT_NO_CACHE_TIME_FLAG) -LIST(APPEND CMAKE_REQUIRED_LIBRARIES "event") -CHECK_SYMBOL_EXISTS(event_base_update_cache_time "sys/types.h;event.h" - HAVE_EVENT_NO_CACHE_TIME_FUNC) - IF(NOT CMAKE_SYSTEM_NAME STREQUAL "SunOS") IF(HAVE_CLOCK_GETTIME) CHECK_SYMBOL_EXISTS(CLOCK_PROCESS_CPUTIME_ID time.h HAVE_CLOCK_PROCESS_CPUTIME_ID) @@ -1260,6 +1244,7 @@ ADD_SUBDIRECTORY(contrib/aho-corasick) ADD_SUBDIRECTORY(contrib/lua-lpeg) ADD_SUBDIRECTORY(contrib/linenoise) ADD_SUBDIRECTORY(contrib/t1ha) +ADD_SUBDIRECTORY(contrib/libev) IF (ENABLE_SNOWBALL MATCHES "ON") LIST(APPEND RSPAMD_REQUIRED_LIBRARIES stemmer) |