]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Move hiredis inclusion to the proper place
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 3 Jan 2017 14:21:59 +0000 (14:21 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 3 Jan 2017 14:21:59 +0000 (14:21 +0000)
CMakeLists.txt

index 9135266d4912fe3ff289168ccb89844897b68f6a..a1cbac0996d8d4c103934c03bb58bf64143fc053 100644 (file)
@@ -729,13 +729,6 @@ ENDIF ()
 #Check for openssl (required for dkim)
 SET(HAVE_OPENSSL 1)
 
-IF(ENABLE_HIREDIS MATCHES "ON")
-       ADD_SUBDIRECTORY(contrib/hiredis)
-       SET(WITH_HIREDIS 1)
-       INCLUDE_DIRECTORIES(BEFORE "${CMAKE_SOURCE_DIR}/contrib/hiredis")
-ENDIF(ENABLE_HIREDIS MATCHES "ON")
-
-
 # Google performance tools
 
 IF(ENABLE_GPERF_TOOLS MATCHES "ON")
@@ -1190,6 +1183,11 @@ ENDIF(NOT DESTDIR)
 
 
 ################################ SUBDIRS SECTION ###########################
+IF(ENABLE_HIREDIS MATCHES "ON")
+       ADD_SUBDIRECTORY(contrib/hiredis)
+       SET(WITH_HIREDIS 1)
+       INCLUDE_DIRECTORIES(BEFORE "${CMAKE_SOURCE_DIR}/contrib/hiredis")
+ENDIF(ENABLE_HIREDIS MATCHES "ON")
 
 ADD_SUBDIRECTORY(contrib/lgpl)
 IF(GLIB_COMPAT)