From 273c893a77316ee12e58503af06e6dc5c25c9ce0 Mon Sep 17 00:00:00 2001 From: Jean Flach Date: Mon, 3 Apr 2017 16:20:00 +0200 Subject: [PATCH] Fix hiredis being built when not needed fixes #5125 --- third-party/CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/third-party/CMakeLists.txt b/third-party/CMakeLists.txt index 17a4ab35c..2606e5038 100644 --- a/third-party/CMakeLists.txt +++ b/third-party/CMakeLists.txt @@ -25,5 +25,8 @@ if(UNIX OR CYGWIN) add_subdirectory(execvpe) endif() -add_subdirectory(socketpair) -add_subdirectory(hiredis) +if(ICINGA2_WITH_REDIS) + add_subdirectory(hiredis) +endif() + +add_subdirectory(socketpair) \ No newline at end of file