From 4fc834d623c76da7f51a70b2ee6055f912671330 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 11 Jan 2016 16:04:50 +0000 Subject: Embed hiredis as it is broken literally everywhere --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'CMakeLists.txt') 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") -- cgit v1.2.3