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