Incorporating ifdefs for features in daggyd

This commit is contained in:
Ian Roddis
2021-12-16 15:18:29 -04:00
parent 2d35d6ed4a
commit 505ffb02bd
2 changed files with 11 additions and 1 deletions

View File

@@ -21,5 +21,5 @@ endif ()
message("-- DAGGY_ENABLE_REDIS is set to ${DAGGY_ENABLE_REDIS}")
if (${DAGGY_ENABLE_REDIS} STREQUAL "ON")
include(cmake/hiredis.cmake)
target_compile_definitions(redis INTERFACE DAGGY_ENABLE_REDIS)
target_compile_definitions(hiredis INTERFACE DAGGY_ENABLE_REDIS)
endif ()