diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-11 16:04:50 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-11 16:04:50 +0000 |
commit | 4fc834d623c76da7f51a70b2ee6055f912671330 (patch) | |
tree | fe5e804cd0696e1ef5e9a2aad404162969e5a0a0 /CMakeLists.txt | |
parent | 361fb11df8192802c73561c72e69adf5831d042a (diff) | |
download | rspamd-4fc834d623c76da7f51a70b2ee6055f912671330.tar.gz rspamd-4fc834d623c76da7f51a70b2ee6055f912671330.zip |
Embed hiredis as it is broken literally everywhere
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 99c1f56c9..f6830b64a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -666,10 +666,10 @@ IF(PCRE_LIBRARY) ELSE(PCRE_LIBRARY) SET(CMAKE_REQUIRED_LIBRARIES "${CMAKE_REQUIRED_LIBRARIES};-lpcre") ENDIF(PCRE_LIBRARY) -# Libhiredis pc file is so special + IF(ENABLE_HIREDIS MATCHES "ON") - ProcessPackage(HIREDIS LIBRARY hiredis INCLUDE hiredis.h INCLUDE_SUFFIXES include/hiredis - ROOT ${HIREDIS_ROOT_DIR} MODULES hiredis libhiredis) + ADD_SUBDIRECTORY(contrib/hiredis) + INCLUDE_DIRECTORIES(BEFORE "${CMAKE_SOURCE_DIR}/contrib/hiredis") ENDIF(ENABLE_HIREDIS MATCHES "ON") |