Fix hiredis being built when not needed

fixes #5125
This commit is contained in:
Jean Flach 2017-04-03 16:20:00 +02:00
parent 46900cea3c
commit 273c893a77
1 changed files with 5 additions and 2 deletions

View File

@ -25,5 +25,8 @@ if(UNIX OR CYGWIN)
add_subdirectory(execvpe)
endif()
if(ICINGA2_WITH_REDIS)
add_subdirectory(hiredis)
endif()
add_subdirectory(socketpair)
add_subdirectory(hiredis)